Skip to content

Commit ba384ad

Browse files
authored
fixed formatting issue for many entries (#2254)
1 parent 19b2739 commit ba384ad

9 files changed

Lines changed: 62 additions & 1 deletion

File tree

cognite/client/_api/entity_matching.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def _run_job(
4444

4545
def retrieve(self, id: int | None = None, external_id: str | None = None) -> EntityMatchingModel | None:
4646
"""`Retrieve model <https://developer.cognite.com/api#tag/Entity-matching/operation/entityMatchingRetrieve>`_
47+
4748
Args:
4849
id (int | None): id of the model to retrieve.
4950
external_id (str | None): external id of the model to retrieve.

cognite/client/_api/functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,7 @@ def delete(self, id: int) -> None:
13771377

13781378
def get_input_data(self, id: int) -> dict[str, object] | None:
13791379
"""`Retrieve the input data to the associated function. <https://developer.cognite.com/api#tag/Function-schedules/operation/getFunctionScheduleInputData>`_
1380+
13801381
Args:
13811382
id (int): Id of the schedule
13821383

cognite/client/_api/templates.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ def update(
454454
self, external_id: str, version: int, item: TemplateInstanceUpdate | Sequence[TemplateInstanceUpdate]
455455
) -> TemplateInstance | TemplateInstanceList:
456456
"""`Update one or more template instances`
457+
457458
Args:
458459
external_id (str): No description.
459460
version (int): No description.

cognite/client/data_classes/_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ def dump(self, camel_case: Literal[True] = True) -> dict[str, Any]:
526526
527527
Args:
528528
camel_case (Literal[True]): No description.
529+
529530
Returns:
530531
dict[str, Any]: A dictionary representation of the instance.
531532
"""

cognite/client/data_classes/data_modeling/cdm/v1.py

Lines changed: 50 additions & 0 deletions
Large diffs are not rendered by default.

cognite/client/data_classes/data_modeling/instances.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def dump(self, camel_case: bool = True) -> dict:
147147

148148
class InstanceCore(DataModelingResource, ABC):
149149
"""A node or edge
150+
150151
Args:
151152
space (str): The workspace for the instance, a unique identifier for the space.
152153
external_id (str): Combined with the space is the unique identifier of the instance.
@@ -1316,6 +1317,7 @@ def extend(self, other: EdgeListWithCursor) -> None: # type: ignore[override]
13161317
class InstancesApply:
13171318
"""
13181319
This represents the write request of an instance query
1320+
13191321
Args:
13201322
nodes (NodeApplyList): A list of nodes.
13211323
edges (EdgeApplyList): A list of edges.

cognite/client/data_classes/geospatial.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,10 @@ class GeospatialGeometryValueComputeFunction(GeospatialGeometryComputeFunction):
655655
"""A geospatial geometry value compute function.
656656
Accepts a well-known text of the geometry prefixed with a spatial reference identifier,
657657
see https://docs.geotools.org/stable/javadocs/org/opengis/referencing/doc-files/WKT.html
658+
658659
Args:
659-
ewkt (str): No description."""
660+
ewkt (str): No description.
661+
"""
660662

661663
def __init__(self, ewkt: str) -> None:
662664
self.ewkt = ewkt

cognite/client/data_classes/workflows.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def dump(self, camel_case: bool = True) -> dict[str, Any]:
253253
class SimulationTaskParameters(WorkflowTaskParameters):
254254
"""
255255
The simulation parameters are used to specify the simulation routine to be executed.
256+
256257
Args:
257258
routine_external_id (str): The external ID of the simulation routine to be executed.
258259
run_time (int | None): Reference timestamp used for data pre-processing and data sampling.
@@ -656,6 +657,7 @@ def dump(self, camel_case: bool = True) -> dict[str, Any]:
656657
class SimulationTaskOutput(WorkflowTaskOutput):
657658
"""
658659
The class represent the output of Simulation execution.
660+
659661
Args:
660662
run_id (int | None): The run ID of the simulation run.
661663
log_id (int | None): The log ID of the simulation run.

cognite/client/utils/_pyodide_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def http_client__init__(
7474
class EnvVarToken(CredentialProvider):
7575
"""Credential provider that always reads token from an environment variable just-in-time,
7676
allowing refreshing the value by another entity.
77+
7778
Args:
7879
key (str): The name of the env.var. to read from. Default: 'COGNITE_TOKEN'
7980
Raises:

0 commit comments

Comments
 (0)