From 2a94adf3b89a20f2d67dbbfd1055ebc14d4b93d6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 00:05:30 +0000 Subject: [PATCH] chore(deps): update pre-commit hook jsh9/pydoclint to v0.5.10 (#2061) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: HÃ¥kon V. Treider --- .pre-commit-config.yaml | 4 +- cognite/client/__init__.py | 2 +- cognite/client/_api/datapoint_tasks.py | 2 +- cognite/client/_api/datapoints.py | 29 +- .../client/_api/transformations/__init__.py | 6 +- cognite/client/_api/workflows.py | 6 +- cognite/client/_api_client.py | 2 +- cognite/client/data_classes/__init__.py | 334 +++++++++--------- cognite/client/data_classes/capabilities.py | 6 +- .../data_classes/data_modeling/__init__.py | 150 ++++---- cognite/client/data_classes/datapoints.py | 8 +- .../hosted_extractors/__init__.py | 96 ++--- .../data_classes/postgres_gateway/__init__.py | 28 +- cognite/client/utils/__init__.py | 4 +- cognite/client/utils/_identifier.py | 6 +- cognite/client/utils/_json.py | 2 +- poetry.lock | 276 +++++++-------- scripts/custom_checks/docstrings.py | 10 +- .../test_api/test_datapoints.py | 6 +- 19 files changed, 483 insertions(+), 494 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8061eae87..fb94f6d06 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.4 + rev: v0.8.2 hooks: - id: ruff args: @@ -48,7 +48,7 @@ repos: require_serial: true # avoid possible race conditions - repo: https://github.com/jsh9/pydoclint # Run after 'custom-checks' as these may auto-fix - rev: 0.5.9 + rev: 0.5.10 hooks: - id: pydoclint require_serial: true # Spammy in run-all scenarios (more than fast enough already) diff --git a/cognite/client/__init__.py b/cognite/client/__init__.py index 6e79685ce..2c541e806 100644 --- a/cognite/client/__init__.py +++ b/cognite/client/__init__.py @@ -6,7 +6,7 @@ from cognite.client.config import ClientConfig, global_config from cognite.client.data_classes import data_modeling -__all__ = ["ClientConfig", "CogniteClient", "__version__", "global_config", "data_modeling"] +__all__ = ["ClientConfig", "CogniteClient", "__version__", "data_modeling", "global_config"] if _RUNNING_IN_BROWSER: from cognite.client.utils._pyodide_helpers import patch_sdk_for_pyodide diff --git a/cognite/client/_api/datapoint_tasks.py b/cognite/client/_api/datapoint_tasks.py index f77227d93..b0ee75824 100644 --- a/cognite/client/_api/datapoint_tasks.py +++ b/cognite/client/_api/datapoint_tasks.py @@ -604,7 +604,7 @@ def _is_task_done(self, n: int) -> bool: return ( not self.next_cursor or n < self.max_query_limit - or not self.uses_cursor and self.next_start == self.end + or (not self.uses_cursor and self.next_start == self.end) ) # fmt: skip diff --git a/cognite/client/_api/datapoints.py b/cognite/client/_api/datapoints.py index 785910783..9d23b57fd 100644 --- a/cognite/client/_api/datapoints.py +++ b/cognite/client/_api/datapoints.py @@ -623,10 +623,8 @@ def __call__( # get 10k/100k datapoints per request. Thus, we round up the given chunk size to the nearest integer multiple of 100k, # then subdivide and yield client-side (we use the raw limit also when dealing with aggregates): request_limit = self._DPS_LIMIT_RAW * math.ceil(chunk_size_datapoints / self._DPS_LIMIT_RAW) - if ( - not is_finite(chunk_size_datapoints) - or chunk_size_datapoints != request_limit - and request_limit % chunk_size_datapoints + if not is_finite(chunk_size_datapoints) or ( + chunk_size_datapoints != request_limit and request_limit % chunk_size_datapoints ): raise ValueError( "The 'chunk_size_datapoints' must be a positive integer that evenly divides 100k OR an integer multiple of 100k " @@ -1938,11 +1936,11 @@ def _extract_raw_data_from_datapoints_array(self, dps: DatapointsArray) -> list[ if dps.null_timestamps: # 'Missing' and NaN can not be differentiated when we read from numpy arrays: - values = [None if ts in dps.null_timestamps else dp for ts, dp in zip(timestamps, values)] + values = [None if ts in dps.null_timestamps else dp for ts, dp in zip(timestamps, values)] # type: ignore [arg-type] if dps.status_code is None: - return list(map(_InsertDatapoint, timestamps, values)) - return list(map(_InsertDatapoint, timestamps, values, dps.status_code.tolist())) + return list(map(_InsertDatapoint, timestamps, values)) # type: ignore [arg-type] + return list(map(_InsertDatapoint, timestamps, values, dps.status_code.tolist())) # type: ignore [arg-type] class RetrieveLatestDpsFetcher: @@ -2056,23 +2054,18 @@ def _prepare_requests( dct["targetUnitSystem"] = i_target_unit_system # Careful logic: "Not given" vs "given" vs "default" with "truthy/falsy": - if ( - self.settings_include_status.get(idx) is True - or self.settings_include_status.get(idx) is None - and self.default_include_status is True + if self.settings_include_status.get(idx) is True or ( + self.settings_include_status.get(idx) is None and self.default_include_status is True ): dct["includeStatus"] = True - if ( - self.settings_ignore_bad_datapoints.get(idx) is False - or self.settings_ignore_bad_datapoints.get(idx) is None - and self.default_ignore_bad_datapoints is False + if self.settings_ignore_bad_datapoints.get(idx) is False or ( + self.settings_ignore_bad_datapoints.get(idx) is None and self.default_ignore_bad_datapoints is False ): dct["ignoreBadDataPoints"] = False - if ( - self.settings_treat_uncertain_as_bad.get(idx) is False - or self.settings_treat_uncertain_as_bad.get(idx) is None + if self.settings_treat_uncertain_as_bad.get(idx) is False or ( + self.settings_treat_uncertain_as_bad.get(idx) is None and self.default_treat_uncertain_as_bad is False ): dct["treatUncertainAsBad"] = False diff --git a/cognite/client/_api/transformations/__init__.py b/cognite/client/_api/transformations/__init__.py index 791e751ae..0c161bb55 100644 --- a/cognite/client/_api/transformations/__init__.py +++ b/cognite/client/_api/transformations/__init__.py @@ -27,11 +27,11 @@ from cognite.client.config import ClientConfig __all__ = [ + "TransformationJobsAPI", + "TransformationNotificationsAPI", + "TransformationSchedulesAPI", "TransformationSchemaAPI", "TransformationsAPI", - "TransformationSchedulesAPI", - "TransformationNotificationsAPI", - "TransformationJobsAPI", ] diff --git a/cognite/client/_api/workflows.py b/cognite/client/_api/workflows.py index 3ac947076..64ffc023c 100644 --- a/cognite/client/_api/workflows.py +++ b/cognite/client/_api/workflows.py @@ -775,10 +775,8 @@ def get_single(wf_xid: WorkflowVersionId, ignore_missing: bool = ignore_unknown_ if any(wf_id.version is None for wf_id in given_wf_ids): raise ValueError("Version must be specified for all workflow version IDs.") - is_single = ( - isinstance(workflow_external_id, WorkflowVersionId) - or isinstance(workflow_external_id, tuple) - and len(given_wf_ids) == 1 + is_single = isinstance(workflow_external_id, WorkflowVersionId) or ( + isinstance(workflow_external_id, tuple) and len(given_wf_ids) == 1 ) if is_single: return get_single(given_wf_ids[0], ignore_missing=True) diff --git a/cognite/client/_api_client.py b/cognite/client/_api_client.py index 8b81c3e42..34dca4b56 100644 --- a/cognite/client/_api_client.py +++ b/cognite/client/_api_client.py @@ -287,7 +287,7 @@ def _is_retryable(self, method: str, path: str) -> bool: if method not in valid_methods: raise ValueError(f"Method {method} is not valid. Must be one of {valid_methods}") - return method in ["GET", "PUT", "PATCH"] or method == "POST" and self._url_is_retryable(path) + return method in ["GET", "PUT", "PATCH"] or (method == "POST" and self._url_is_retryable(path)) @classmethod @functools.lru_cache(64) diff --git a/cognite/client/data_classes/__init__.py b/cognite/client/data_classes/__init__.py index e6a268e7c..8a436481f 100644 --- a/cognite/client/data_classes/__init__.py +++ b/cognite/client/data_classes/__init__.py @@ -322,118 +322,191 @@ ) __all__ = [ + "ALL_USER_ACCOUNTS", + "AggregateResult", + "AggregateResultItem", + "AggregateUniqueValuesResult", "Annotation", - "AnnotationWrite", - "AnnotationWriteList", "AnnotationFilter", - "AnnotationReverseLookupFilter", "AnnotationList", + "AnnotationReverseLookupFilter", "AnnotationUpdate", - "AggregateResultItem", + "AnnotationWrite", + "AnnotationWriteList", "Asset", - "AssetWrite", - "CountAggregate", "AssetFilter", "AssetHierarchy", "AssetList", - "AssetWriteList", "AssetUpdate", + "AssetWrite", + "AssetWriteList", + "BoundingBox3D", + "CDFTaskOutput", + "CDFTaskParameters", + "ClientCredentials", + "ConstantResolver", "ContextualizationJob", "ContextualizationJobList", "ContextualizationJobType", - "EntityMatchingModel", - "EntityMatchingModelList", - "EntityMatchingModelUpdate", - "JobStatus", + "CoordinateReferenceSystem", + "CoordinateReferenceSystemList", + "CoordinateReferenceSystemWrite", + "CoordinateReferenceSystemWriteList", + "CountAggregate", + "CreatedSession", + "DataPointSubscriptionCreate", + "DataPointSubscriptionUpdate", + "DataPointSubscriptionWrite", + "DataSet", + "DataSetFilter", + "DataSetList", + "DataSetUpdate", + "DataSetWrite", + "DataSetWriteList", "Database", - "DatabaseWrite", "DatabaseList", + "DatabaseWrite", "DatabaseWriteList", - "Row", - "RowWrite", - "RowList", - "RowWriteList", - "Table", - "TableWrite", - "TableList", - "TableWriteList", + "Datapoint", + "DatapointSubscription", + "DatapointSubscriptionList", + "DatapointSubscriptionWriteList", + "Datapoints", + "DatapointsArray", + "DatapointsArrayList", + "DatapointsList", + "DatapointsQuery", + "Document", + "DocumentHighlight", + "DocumentHighlightList", + "DocumentList", + "DynamicTaskOutput", + "DynamicTaskParameters", + "EndTimeFilter", + "EntityMatchingModel", + "EntityMatchingModelList", + "EntityMatchingModelUpdate", + "Event", + "EventFilter", + "EventList", + "EventUpdate", + "EventWrite", + "EventWriteList", "ExtractionPipeline", - "ExtractionPipelineWrite", - "ExtractionPipelineWriteList", "ExtractionPipelineConfig", - "ExtractionPipelineConfigWrite", "ExtractionPipelineConfigRevision", "ExtractionPipelineConfigRevisionList", + "ExtractionPipelineConfigWrite", "ExtractionPipelineConfigWriteList", "ExtractionPipelineContact", "ExtractionPipelineList", "ExtractionPipelineRun", - "ExtractionPipelineRunWrite", "ExtractionPipelineRunFilter", "ExtractionPipelineRunList", + "ExtractionPipelineRunWrite", "ExtractionPipelineRunWriteList", "ExtractionPipelineUpdate", - "EndTimeFilter", - "Event", - "EventWrite", - "EventFilter", - "EventList", - "EventWriteList", - "EventUpdate", + "ExtractionPipelineWrite", + "ExtractionPipelineWriteList", + "Feature", + "FeatureAggregate", + "FeatureAggregateList", + "FeatureList", + "FeatureType", + "FeatureTypeList", + "FeatureTypePatch", + "FeatureTypeWrite", + "FeatureTypeWriteList", + "FeatureWrite", + "FeatureWriteList", "FileMetadata", - "FileMetadataWrite", "FileMetadataFilter", "FileMetadataList", - "FileMetadataWriteList", "FileMetadataUpdate", + "FileMetadataWrite", + "FileMetadataWriteList", "FileMultipartUploadSession", - "SourceFile", - "Document", - "DocumentList", - "DocumentHighlight", - "DocumentHighlightList", - "ClientCredentials", - "ALL_USER_ACCOUNTS", - "CreatedSession", + "Function", + "FunctionCall", + "FunctionCallList", + "FunctionCallLog", + "FunctionCallLogEntry", + "FunctionFilter", + "FunctionList", + "FunctionSchedule", + "FunctionScheduleWrite", + "FunctionScheduleWriteList", + "FunctionSchedulesFilter", + "FunctionSchedulesList", + "FunctionTaskOutput", + "FunctionTaskParameters", + "FunctionWrite", + "FunctionWriteList", + "FunctionsLimits", + "GeoLocation", + "GeoLocationFilter", + "Geometry", + "GeometryFilter", "Group", - "GroupWrite", "GroupList", + "GroupWrite", "GroupWriteList", - "SecurityCategory", - "SecurityCategoryWrite", - "SecurityCategoryList", - "SecurityCategoryWriteList", - "Session", - "SessionList", + "HasExternalAndInternalId", + "HasExternalId", + "HasInternalId", + "HasName", + "JobStatus", "Label", "LabelDefinition", - "LabelDefinitionWrite", "LabelDefinitionFilter", "LabelDefinitionList", + "LabelDefinitionWrite", "LabelFilter", + "LatestDatapointQuery", + "OidcCredentials", + "RawTable", "Relationship", - "RelationshipWrite", "RelationshipFilter", "RelationshipList", - "RelationshipWriteList", "RelationshipUpdate", + "RelationshipWrite", + "RelationshipWriteList", + "RevisionCameraProperties", + "Row", + "RowList", + "RowWrite", + "RowWriteList", + "SecurityCategory", + "SecurityCategoryList", + "SecurityCategoryWrite", + "SecurityCategoryWriteList", "Sequence", - "SequenceWrite", + "SequenceColumn", + "SequenceColumnList", "SequenceColumnUpdate", + "SequenceColumnWrite", + "SequenceColumnWriteList", "SequenceData", - "SequenceRows", - "SequenceRowsList", "SequenceFilter", "SequenceList", - "SequenceWriteList", - "SequenceUpdate", - "SequenceColumn", - "SequenceColumnWrite", - "SequenceColumnList", - "SequenceColumnWriteList", "SequenceRow", - "ConstantResolver", + "SequenceRows", + "SequenceRowsList", + "SequenceUpdate", + "SequenceWrite", + "SequenceWriteList", + "Session", + "SessionList", + "SimulationTaskOutput", + "SimulationTaskParameters", "Source", + "SourceFile", + "StatusCode", + "SubworkflowTaskParameters", + "Table", + "TableList", + "TableWrite", + "TableWriteList", "TemplateGroup", "TemplateGroupList", "TemplateGroupVersion", @@ -441,155 +514,82 @@ "TemplateInstance", "TemplateInstanceList", "TemplateInstanceUpdate", - "View", - "ViewResolver", - "BoundingBox3D", - "RevisionCameraProperties", "ThreeDAssetMapping", - "ThreeDAssetMappingWrite", "ThreeDAssetMappingList", + "ThreeDAssetMappingWrite", "ThreeDAssetMappingWriteList", "ThreeDModel", - "ThreeDModelWrite", "ThreeDModelList", - "ThreeDModelWriteList", "ThreeDModelRevision", - "ThreeDModelRevisionWrite", "ThreeDModelRevisionList", - "ThreeDModelRevisionWriteList", "ThreeDModelRevisionUpdate", + "ThreeDModelRevisionWrite", + "ThreeDModelRevisionWriteList", "ThreeDModelUpdate", + "ThreeDModelWrite", + "ThreeDModelWriteList", "ThreeDNode", "ThreeDNodeList", "TimeSeries", - "TimeSeriesWrite", "TimeSeriesFilter", "TimeSeriesList", - "TimeSeriesWriteList", "TimeSeriesUpdate", - "DatapointSubscription", - "DataPointSubscriptionWrite", - "DataPointSubscriptionCreate", - "DatapointSubscriptionList", - "DataPointSubscriptionUpdate", - "DatapointSubscriptionWriteList", - "OidcCredentials", - "RawTable", - "SimulationTaskParameters", - "SimulationTaskOutput", + "TimeSeriesWrite", + "TimeSeriesWriteList", + "TimestampRange", "Transformation", - "TransformationWrite", "TransformationBlockedInfo", "TransformationDestination", - "TransformationList", - "TransformationWriteList", - "TransformationPreviewResult", - "TransformationUpdate", "TransformationJob", "TransformationJobFilter", "TransformationJobList", "TransformationJobMetric", "TransformationJobMetricList", "TransformationJobStatus", + "TransformationList", "TransformationNotification", "TransformationNotificationList", "TransformationNotificationWrite", "TransformationNotificationWriteList", + "TransformationPreviewResult", "TransformationSchedule", - "TransformationScheduleWrite", "TransformationScheduleList", - "TransformationScheduleWriteList", "TransformationScheduleUpdate", + "TransformationScheduleWrite", + "TransformationScheduleWriteList", "TransformationSchemaColumn", "TransformationSchemaColumnList", - "DataSet", - "DataSetWrite", - "DataSetFilter", - "DataSetList", - "DataSetWriteList", - "DataSetUpdate", - "AggregateResult", - "AggregateUniqueValuesResult", - "GeoLocation", - "GeoLocationFilter", - "GeometryFilter", - "Geometry", - "TimestampRange", - "Datapoint", - "Datapoints", - "DatapointsList", - "DatapointsArray", - "DatapointsArrayList", - "DatapointsQuery", - "LatestDatapointQuery", - "StatusCode", - "Function", - "FunctionWrite", - "FunctionFilter", - "FunctionSchedule", - "FunctionScheduleWrite", - "FunctionSchedulesFilter", - "FunctionScheduleWriteList", - "FunctionSchedulesList", - "FunctionList", - "FunctionWriteList", - "FunctionCall", - "FunctionCallList", - "FunctionCallLogEntry", - "FunctionCallLog", - "FunctionsLimits", - "Feature", - "FeatureWrite", - "FeatureList", - "FeatureWriteList", - "FeatureType", - "FeatureTypeWrite", - "FeatureTypeList", - "FeatureTypeWriteList", - "FeatureTypePatch", - "FeatureAggregate", - "FeatureAggregateList", - "CoordinateReferenceSystemList", - "CoordinateReferenceSystemWrite", - "CoordinateReferenceSystemWriteList", - "CoordinateReferenceSystem", + "TransformationTaskOutput", + "TransformationTaskParameters", + "TransformationUpdate", + "TransformationWrite", + "TransformationWriteList", "UserProfile", "UserProfileList", - "WorkflowUpsert", + "View", + "ViewResolver", + "Workflow", + "WorkflowDefinition", + "WorkflowDefinitionUpsert", "WorkflowExecution", "WorkflowExecutionDetailed", "WorkflowExecutionList", "WorkflowList", - "WorkflowVersion", - "WorkflowVersionUpsert", - "WorkflowVersionId", - "WorkflowVersionList", - "FunctionTaskParameters", - "TransformationTaskParameters", - "CDFTaskParameters", - "DynamicTaskParameters", - "SubworkflowTaskParameters", - "FunctionTaskOutput", - "TransformationTaskOutput", - "CDFTaskOutput", - "DynamicTaskOutput", - "WorkflowDefinition", - "WorkflowDefinitionUpsert", - "WorkflowTaskExecution", - "Workflow", "WorkflowTask", - "WorkflowUpsertList", - "WorkflowVersionUpsertList", - "WorkflowVersionUpsertList", + "WorkflowTaskExecution", "WorkflowTrigger", "WorkflowTriggerCreate", - "WorkflowTriggerUpsert", "WorkflowTriggerList", - "WorkflowTriggerUpsertList", "WorkflowTriggerRun", "WorkflowTriggerRunList", - "HasName", - "HasExternalId", - "HasInternalId", - "HasExternalAndInternalId", + "WorkflowTriggerUpsert", + "WorkflowTriggerUpsertList", + "WorkflowUpsert", + "WorkflowUpsertList", + "WorkflowVersion", + "WorkflowVersionId", + "WorkflowVersionList", + "WorkflowVersionUpsert", + "WorkflowVersionUpsertList", + "WorkflowVersionUpsertList", ] diff --git a/cognite/client/data_classes/capabilities.py b/cognite/client/data_classes/capabilities.py index cdfde0f8b..9990d3e9a 100644 --- a/cognite/client/data_classes/capabilities.py +++ b/cognite/client/data_classes/capabilities.py @@ -344,10 +344,8 @@ def as_tuples(self, project: str | None = None) -> set[CapabilityTuple]: if isinstance(cap, LegacyCapability): # Legacy capabilities are no longer in use, so they are safe to skip. continue - if ( - isinstance(proj_cap.project_scope, AllProjectsScope) - or isinstance(proj_cap.project_scope, ProjectsScope) - and project in proj_cap.project_scope.projects + if isinstance(proj_cap.project_scope, AllProjectsScope) or ( + isinstance(proj_cap.project_scope, ProjectsScope) and project in proj_cap.project_scope.projects ): output |= cap.as_tuples() return output diff --git a/cognite/client/data_classes/data_modeling/__init__.py b/cognite/client/data_classes/data_modeling/__init__.py index 2afd08607..1e78f51c7 100644 --- a/cognite/client/data_classes/data_modeling/__init__.py +++ b/cognite/client/data_classes/data_modeling/__init__.py @@ -104,99 +104,99 @@ from cognite.client.data_classes.filters import Filter __all__ = [ - "Aggregation", "AggregatedValue", - "aggregations", - "ViewIdentifier", - "ViewApply", - "ViewApplyList", - "PropertyId", - "MappedPropertyApply", - "VersionedDataModelingId", - "DataModelingId", - "ContainerIdentifier", - "DataModelIdentifier", - "DirectRelation", - "Filter", - "filters", - "DirectRelationReference", - "DataModel", - "DataModelList", - "DataModelsSort", - "DataModelFilter", - "DataModelApply", - "DataModelApplyList", - "ViewFilter", - "MappedProperty", + "Aggregation", + "Boolean", + "CDFExternalIdReference", "ConnectionDefinition", - "SingleHopConnectionDefinition", - "EdgeConnection", - "EdgeConnectionApply", - "MultiEdgeConnection", - "MultiEdgeConnectionApply", - "MultiReverseDirectRelation", - "MultiReverseDirectRelationApply", - "Space", - "SpaceList", - "SpaceApply", - "SpaceApplyList", - "View", - "ViewList", + "Constraint", "Container", - "ContainerList", "ContainerApply", "ContainerApplyList", - "Index", - "Constraint", - "ContainerProperty", - "CDFExternalIdReference", - "RequiresConstraint", "ContainerId", - "UniquenessConstraint", - "ViewId", + "ContainerIdentifier", + "ContainerList", + "ContainerProperty", + "DataModel", + "DataModelApply", + "DataModelApplyList", + "DataModelFilter", "DataModelId", - "Text", - "Boolean", - "Float32", - "Float64", - "Int32", - "Int64", - "Timestamp", + "DataModelIdentifier", + "DataModelList", + "DataModelingId", + "DataModelsSort", "Date", - "Json", - "TimeSeriesReference", - "FileReference", - "SequenceReference", - "PropertyType", - "Node", - "NodeList", - "NodeListWithCursor", - "NodeApply", - "NodeApplyResult", - "NodeApplyResultList", - "NodeApplyList", + "DirectRelation", + "DirectRelationReference", "Edge", - "EdgeList", - "EdgeListWithCursor", "EdgeApply", + "EdgeApplyList", "EdgeApplyResult", "EdgeApplyResultList", - "EdgeApplyList", - "InstanceSort", - "NodeOrEdgeData", - "NodeId", + "EdgeConnection", + "EdgeConnectionApply", "EdgeId", - "InstancesApplyResult", + "EdgeList", + "EdgeListWithCursor", + "FileReference", + "Filter", + "Float32", + "Float64", + "Index", + "InstanceApply", + "InstanceSort", "InstancesApply", + "InstancesApplyResult", "InstancesDeleteResult", "InstancesResult", - "InstanceApply", - "InvolvedViews", + "Int32", + "Int64", "InvolvedContainers", - "query", + "InvolvedViews", + "Json", + "MappedProperty", + "MappedPropertyApply", + "MultiEdgeConnection", + "MultiEdgeConnectionApply", + "MultiReverseDirectRelation", + "MultiReverseDirectRelationApply", + "Node", + "NodeApply", + "NodeApplyList", + "NodeApplyResult", + "NodeApplyResultList", + "NodeId", + "NodeList", + "NodeListWithCursor", + "NodeOrEdgeData", + "PropertyId", "PropertyOptions", + "PropertyType", + "RequiresConstraint", + "SequenceReference", + "SingleHopConnectionDefinition", + "Space", + "SpaceApply", + "SpaceApplyList", + "SpaceList", + "Text", + "TimeSeriesReference", + "Timestamp", + "TypedEdge", "TypedEdgeApply", - "TypedNodeApply", "TypedNode", - "TypedEdge", + "TypedNodeApply", + "UniquenessConstraint", + "VersionedDataModelingId", + "View", + "ViewApply", + "ViewApplyList", + "ViewFilter", + "ViewId", + "ViewIdentifier", + "ViewList", + "aggregations", + "filters", + "query", ] diff --git a/cognite/client/data_classes/datapoints.py b/cognite/client/data_classes/datapoints.py index e256e954c..3affba026 100644 --- a/cognite/client/data_classes/datapoints.py +++ b/cognite/client/data_classes/datapoints.py @@ -770,10 +770,10 @@ def dump(self, camel_case: bool = True, convert_timestamps: bool = False) -> dic if self.timezone is None: arrays[0] = arrays[0].astype("datetime64[ms]").astype(datetime.datetime).astype(str) else: - arrays[0] = np.array( + arrays[0] = np.array( # type: ignore [type-var] [ - convert_and_isoformat_timestamp(ts, self.timezone) - for ts in arrays[0].astype("datetime64[ms]").astype(np.int64).tolist() + convert_and_isoformat_timestamp(ts, self.timezone) # type: ignore [arg-type] + for ts in arrays[0].astype("datetime64[ms]").astype(np.int64).tolist() # type: ignore [union-attr] ], dtype=str, ) @@ -796,7 +796,7 @@ def dump(self, camel_case: bool = True, convert_timestamps: bool = False) -> dic ): raise ValueError("The number of status codes/symbols does not match the number of datapoints") - for dp, code, symbol in zip(datapoints, map(numpy_dtype_fix, self.status_code), self.status_symbol): + for dp, code, symbol in zip(datapoints, map(numpy_dtype_fix, self.status_code), self.status_symbol): # type: ignore [arg-type] dp["status"] = {"code": code, "symbol": symbol} # type: ignore [assignment] # When we're dealing with datapoints with bad status codes, NaN might be either one of [, nan]: diff --git a/cognite/client/data_classes/hosted_extractors/__init__.py b/cognite/client/data_classes/hosted_extractors/__init__.py index ad4462399..b8acd2603 100644 --- a/cognite/client/data_classes/hosted_extractors/__init__.py +++ b/cognite/client/data_classes/hosted_extractors/__init__.py @@ -73,67 +73,67 @@ ) __all__ = [ - "EventHubSource", - "EventHubSourceWrite", - "MQTT3Source", - "MQTT3SourceWrite", - "MQTT5Source", - "MQTT5SourceWrite", - "Source", - "SourceList", - "SourceWrite", - "SourceWriteList", - "SourceUpdate", - "MQTT3SourceUpdate", - "MQTT5SourceUpdate", - "EventHubSourceUpdate", + "BodyLoad", + "CSVInput", + "CogniteFormat", + "CustomFormat", + "CustomMapping", "Destination", "DestinationList", + "DestinationUpdate", "DestinationWrite", "DestinationWriteList", - "DestinationUpdate", - "SessionWrite", - "JobWrite", - "JobList", + "EventHubSource", + "EventHubSourceUpdate", + "EventHubSourceWrite", + "HeaderValueLoad", + "IncrementalLoad", + "InputMapping", + "JSONInput", "Job", - "JobUpdate", - "JobWriteList", - "JobFormat", - "CustomFormat", - "RockwellFormat", - "ValueFormat", - "CogniteFormat", - "Prefix", "JobConfig", - "MQTTConfig", - "KafkaConfig", - "JobStatus", - "TargetStatus", - "JobMetrics", - "JobMetricsList", + "JobFormat", + "JobList", "JobLogs", "JobLogsList", - "RestConfig", - "IncrementalLoad", - "BodyLoad", - "QueryParamLoad", - "NextUrlLoad", - "HeaderValueLoad", + "JobMetrics", + "JobMetricsList", + "JobStatus", + "JobUpdate", + "JobWrite", + "JobWriteList", + "KafkaConfig", + "KafkaSource", + "KafkaSourceUpdate", + "KafkaSourceWrite", + "MQTT3Source", + "MQTT3SourceUpdate", + "MQTT3SourceWrite", + "MQTT5Source", + "MQTT5SourceUpdate", + "MQTT5SourceWrite", + "MQTTConfig", "Mapping", "MappingList", + "MappingUpdate", "MappingWrite", "MappingWriteList", - "MappingUpdate", - "CustomMapping", - "InputMapping", - "CSVInput", + "NextUrlLoad", + "Prefix", "ProtoBufInput", - "JSONInput", - "XMLInput", + "QueryParamLoad", + "RestConfig", "RestSource", - "RestSourceWrite", "RestSourceUpdate", - "KafkaSource", - "KafkaSourceWrite", - "KafkaSourceUpdate", + "RestSourceWrite", + "RockwellFormat", + "SessionWrite", + "Source", + "SourceList", + "SourceUpdate", + "SourceWrite", + "SourceWriteList", + "TargetStatus", + "ValueFormat", + "XMLInput", ] diff --git a/cognite/client/data_classes/postgres_gateway/__init__.py b/cognite/client/data_classes/postgres_gateway/__init__.py index 145b5d84e..deb865bad 100644 --- a/cognite/client/data_classes/postgres_gateway/__init__.py +++ b/cognite/client/data_classes/postgres_gateway/__init__.py @@ -26,24 +26,24 @@ ) __all__ = [ - "User", - "UserList", - "UserUpdate", - "UserWrite", - "UserWriteList", + "Column", + "ColumnList", + "ColumnType", + "RawTable", + "RawTableOptions", + "RawTableWrite", "SessionCredentials", - "UserCreated", - "UserCreatedList", "Table", "TableList", "TableWrite", "TableWriteList", - "RawTableOptions", - "Column", - "RawTableWrite", - "ViewTableWrite", - "RawTable", + "User", + "UserCreated", + "UserCreatedList", + "UserList", + "UserUpdate", + "UserWrite", + "UserWriteList", "ViewTable", - "ColumnType", - "ColumnList", + "ViewTableWrite", ] diff --git a/cognite/client/utils/__init__.py b/cognite/client/utils/__init__.py index a864e87bf..76e78d8bc 100644 --- a/cognite/client/utils/__init__.py +++ b/cognite/client/utils/__init__.py @@ -11,11 +11,11 @@ ) __all__ = [ - "ZoneInfo", "MAX_TIMESTAMP_MS", "MIN_TIMESTAMP_MS", + "ZoneInfo", "datetime_to_ms", + "datetime_to_ms_iso_timestamp", "ms_to_datetime", "timestamp_to_ms", - "datetime_to_ms_iso_timestamp", ] diff --git a/cognite/client/utils/_identifier.py b/cognite/client/utils/_identifier.py index ed0cb09c6..b185b830b 100644 --- a/cognite/client/utils/_identifier.py +++ b/cognite/client/utils/_identifier.py @@ -362,10 +362,8 @@ def load( f"{id_name}external_ids must be of type str or SequenceNotStr[str]. Found {type(external_ids)}" ) if instance_ids is not None: - if ( - isinstance(instance_ids, InstanceId | dict) - or isinstance(instance_ids, tuple) - and len(instance_ids) == 2 + if isinstance(instance_ids, InstanceId | dict) or ( + isinstance(instance_ids, tuple) and len(instance_ids) == 2 ): value_passed_as_primitive = True all_identifiers.append(InstanceId.load(instance_ids)) # type: ignore[arg-type] diff --git a/cognite/client/utils/_json.py b/cognite/client/utils/_json.py index fb6ad343a..7c6bf0c2f 100644 --- a/cognite/client/utils/_json.py +++ b/cognite/client/utils/_json.py @@ -16,7 +16,7 @@ import json # type: ignore [no-redef] from json import JSONDecodeError # type: ignore [assignment] -__all__ = ["dumps", "loads", "JSONDecodeError", "convert_to_float", "convert_nonfinite_float_to_str"] +__all__ = ["JSONDecodeError", "convert_nonfinite_float_to_str", "convert_to_float", "dumps", "loads"] def _default_json_encoder(obj: Any) -> Any: diff --git a/poetry.lock b/poetry.lock index 8a30cc95c..a43c74c88 100644 --- a/poetry.lock +++ b/poetry.lock @@ -283,73 +283,73 @@ files = [ [[package]] name = "coverage" -version = "7.6.8" +version = "7.6.9" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.9" files = [ - {file = "coverage-7.6.8-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b39e6011cd06822eb964d038d5dff5da5d98652b81f5ecd439277b32361a3a50"}, - {file = "coverage-7.6.8-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:63c19702db10ad79151a059d2d6336fe0c470f2e18d0d4d1a57f7f9713875dcf"}, - {file = "coverage-7.6.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3985b9be361d8fb6b2d1adc9924d01dec575a1d7453a14cccd73225cb79243ee"}, - {file = "coverage-7.6.8-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:644ec81edec0f4ad17d51c838a7d01e42811054543b76d4ba2c5d6af741ce2a6"}, - {file = "coverage-7.6.8-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f188a2402f8359cf0c4b1fe89eea40dc13b52e7b4fd4812450da9fcd210181d"}, - {file = "coverage-7.6.8-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e19122296822deafce89a0c5e8685704c067ae65d45e79718c92df7b3ec3d331"}, - {file = "coverage-7.6.8-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:13618bed0c38acc418896005732e565b317aa9e98d855a0e9f211a7ffc2d6638"}, - {file = "coverage-7.6.8-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:193e3bffca48ad74b8c764fb4492dd875038a2f9925530cb094db92bb5e47bed"}, - {file = "coverage-7.6.8-cp310-cp310-win32.whl", hash = "sha256:3988665ee376abce49613701336544041f2117de7b7fbfe91b93d8ff8b151c8e"}, - {file = "coverage-7.6.8-cp310-cp310-win_amd64.whl", hash = "sha256:f56f49b2553d7dd85fd86e029515a221e5c1f8cb3d9c38b470bc38bde7b8445a"}, - {file = "coverage-7.6.8-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:86cffe9c6dfcfe22e28027069725c7f57f4b868a3f86e81d1c62462764dc46d4"}, - {file = "coverage-7.6.8-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d82ab6816c3277dc962cfcdc85b1efa0e5f50fb2c449432deaf2398a2928ab94"}, - {file = "coverage-7.6.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:13690e923a3932e4fad4c0ebfb9cb5988e03d9dcb4c5150b5fcbf58fd8bddfc4"}, - {file = "coverage-7.6.8-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4be32da0c3827ac9132bb488d331cb32e8d9638dd41a0557c5569d57cf22c9c1"}, - {file = "coverage-7.6.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:44e6c85bbdc809383b509d732b06419fb4544dca29ebe18480379633623baafb"}, - {file = "coverage-7.6.8-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:768939f7c4353c0fac2f7c37897e10b1414b571fd85dd9fc49e6a87e37a2e0d8"}, - {file = "coverage-7.6.8-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e44961e36cb13c495806d4cac67640ac2866cb99044e210895b506c26ee63d3a"}, - {file = "coverage-7.6.8-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:3ea8bb1ab9558374c0ab591783808511d135a833c3ca64a18ec927f20c4030f0"}, - {file = "coverage-7.6.8-cp311-cp311-win32.whl", hash = "sha256:629a1ba2115dce8bf75a5cce9f2486ae483cb89c0145795603d6554bdc83e801"}, - {file = "coverage-7.6.8-cp311-cp311-win_amd64.whl", hash = "sha256:fb9fc32399dca861584d96eccd6c980b69bbcd7c228d06fb74fe53e007aa8ef9"}, - {file = "coverage-7.6.8-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:e683e6ecc587643f8cde8f5da6768e9d165cd31edf39ee90ed7034f9ca0eefee"}, - {file = "coverage-7.6.8-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1defe91d41ce1bd44b40fabf071e6a01a5aa14de4a31b986aa9dfd1b3e3e414a"}, - {file = "coverage-7.6.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7ad66e8e50225ebf4236368cc43c37f59d5e6728f15f6e258c8639fa0dd8e6d"}, - {file = "coverage-7.6.8-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3fe47da3e4fda5f1abb5709c156eca207eacf8007304ce3019eb001e7a7204cb"}, - {file = "coverage-7.6.8-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:202a2d645c5a46b84992f55b0a3affe4f0ba6b4c611abec32ee88358db4bb649"}, - {file = "coverage-7.6.8-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4674f0daa1823c295845b6a740d98a840d7a1c11df00d1fd62614545c1583787"}, - {file = "coverage-7.6.8-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:74610105ebd6f33d7c10f8907afed696e79c59e3043c5f20eaa3a46fddf33b4c"}, - {file = "coverage-7.6.8-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:37cda8712145917105e07aab96388ae76e787270ec04bcb9d5cc786d7cbb8443"}, - {file = "coverage-7.6.8-cp312-cp312-win32.whl", hash = "sha256:9e89d5c8509fbd6c03d0dd1972925b22f50db0792ce06324ba069f10787429ad"}, - {file = "coverage-7.6.8-cp312-cp312-win_amd64.whl", hash = "sha256:379c111d3558272a2cae3d8e57e6b6e6f4fe652905692d54bad5ea0ca37c5ad4"}, - {file = "coverage-7.6.8-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:0b0c69f4f724c64dfbfe79f5dfb503b42fe6127b8d479b2677f2b227478db2eb"}, - {file = "coverage-7.6.8-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c15b32a7aca8038ed7644f854bf17b663bc38e1671b5d6f43f9a2b2bd0c46f63"}, - {file = "coverage-7.6.8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:63068a11171e4276f6ece913bde059e77c713b48c3a848814a6537f35afb8365"}, - {file = "coverage-7.6.8-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f4548c5ead23ad13fb7a2c8ea541357474ec13c2b736feb02e19a3085fac002"}, - {file = "coverage-7.6.8-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3b4b4299dd0d2c67caaaf286d58aef5e75b125b95615dda4542561a5a566a1e3"}, - {file = "coverage-7.6.8-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:c9ebfb2507751f7196995142f057d1324afdab56db1d9743aab7f50289abd022"}, - {file = "coverage-7.6.8-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:c1b4474beee02ede1eef86c25ad4600a424fe36cff01a6103cb4533c6bf0169e"}, - {file = "coverage-7.6.8-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:d9fd2547e6decdbf985d579cf3fc78e4c1d662b9b0ff7cc7862baaab71c9cc5b"}, - {file = "coverage-7.6.8-cp313-cp313-win32.whl", hash = "sha256:8aae5aea53cbfe024919715eca696b1a3201886ce83790537d1c3668459c7146"}, - {file = "coverage-7.6.8-cp313-cp313-win_amd64.whl", hash = "sha256:ae270e79f7e169ccfe23284ff5ea2d52a6f401dc01b337efb54b3783e2ce3f28"}, - {file = "coverage-7.6.8-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:de38add67a0af869b0d79c525d3e4588ac1ffa92f39116dbe0ed9753f26eba7d"}, - {file = "coverage-7.6.8-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:b07c25d52b1c16ce5de088046cd2432b30f9ad5e224ff17c8f496d9cb7d1d451"}, - {file = "coverage-7.6.8-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:62a66ff235e4c2e37ed3b6104d8b478d767ff73838d1222132a7a026aa548764"}, - {file = "coverage-7.6.8-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:09b9f848b28081e7b975a3626e9081574a7b9196cde26604540582da60235fdf"}, - {file = "coverage-7.6.8-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:093896e530c38c8e9c996901858ac63f3d4171268db2c9c8b373a228f459bbc5"}, - {file = "coverage-7.6.8-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9a7b8ac36fd688c8361cbc7bf1cb5866977ece6e0b17c34aa0df58bda4fa18a4"}, - {file = "coverage-7.6.8-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:38c51297b35b3ed91670e1e4efb702b790002e3245a28c76e627478aa3c10d83"}, - {file = "coverage-7.6.8-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:2e4e0f60cb4bd7396108823548e82fdab72d4d8a65e58e2c19bbbc2f1e2bfa4b"}, - {file = "coverage-7.6.8-cp313-cp313t-win32.whl", hash = "sha256:6535d996f6537ecb298b4e287a855f37deaf64ff007162ec0afb9ab8ba3b8b71"}, - {file = "coverage-7.6.8-cp313-cp313t-win_amd64.whl", hash = "sha256:c79c0685f142ca53256722a384540832420dff4ab15fec1863d7e5bc8691bdcc"}, - {file = "coverage-7.6.8-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3ac47fa29d8d41059ea3df65bd3ade92f97ee4910ed638e87075b8e8ce69599e"}, - {file = "coverage-7.6.8-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:24eda3a24a38157eee639ca9afe45eefa8d2420d49468819ac5f88b10de84f4c"}, - {file = "coverage-7.6.8-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e4c81ed2820b9023a9a90717020315e63b17b18c274a332e3b6437d7ff70abe0"}, - {file = "coverage-7.6.8-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bd55f8fc8fa494958772a2a7302b0354ab16e0b9272b3c3d83cdb5bec5bd1779"}, - {file = "coverage-7.6.8-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f39e2f3530ed1626c66e7493be7a8423b023ca852aacdc91fb30162c350d2a92"}, - {file = "coverage-7.6.8-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:716a78a342679cd1177bc8c2fe957e0ab91405bd43a17094324845200b2fddf4"}, - {file = "coverage-7.6.8-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:177f01eeaa3aee4a5ffb0d1439c5952b53d5010f86e9d2667963e632e30082cc"}, - {file = "coverage-7.6.8-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:912e95017ff51dc3d7b6e2be158dedc889d9a5cc3382445589ce554f1a34c0ea"}, - {file = "coverage-7.6.8-cp39-cp39-win32.whl", hash = "sha256:4db3ed6a907b555e57cc2e6f14dc3a4c2458cdad8919e40b5357ab9b6db6c43e"}, - {file = "coverage-7.6.8-cp39-cp39-win_amd64.whl", hash = "sha256:428ac484592f780e8cd7b6b14eb568f7c85460c92e2a37cb0c0e5186e1a0d076"}, - {file = "coverage-7.6.8-pp39.pp310-none-any.whl", hash = "sha256:5c52a036535d12590c32c49209e79cabaad9f9ad8aa4cbd875b68c4d67a9cbce"}, - {file = "coverage-7.6.8.tar.gz", hash = "sha256:8b2b8503edb06822c86d82fa64a4a5cb0760bb8f31f26e138ec743f422f37cfc"}, + {file = "coverage-7.6.9-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:85d9636f72e8991a1706b2b55b06c27545448baf9f6dbf51c4004609aacd7dcb"}, + {file = "coverage-7.6.9-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:608a7fd78c67bee8936378299a6cb9f5149bb80238c7a566fc3e6717a4e68710"}, + {file = "coverage-7.6.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:96d636c77af18b5cb664ddf12dab9b15a0cfe9c0bde715da38698c8cea748bfa"}, + {file = "coverage-7.6.9-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d75cded8a3cff93da9edc31446872d2997e327921d8eed86641efafd350e1df1"}, + {file = "coverage-7.6.9-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f7b15f589593110ae767ce997775d645b47e5cbbf54fd322f8ebea6277466cec"}, + {file = "coverage-7.6.9-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:44349150f6811b44b25574839b39ae35291f6496eb795b7366fef3bd3cf112d3"}, + {file = "coverage-7.6.9-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:d891c136b5b310d0e702e186d70cd16d1119ea8927347045124cb286b29297e5"}, + {file = "coverage-7.6.9-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:db1dab894cc139f67822a92910466531de5ea6034ddfd2b11c0d4c6257168073"}, + {file = "coverage-7.6.9-cp310-cp310-win32.whl", hash = "sha256:41ff7b0da5af71a51b53f501a3bac65fb0ec311ebed1632e58fc6107f03b9198"}, + {file = "coverage-7.6.9-cp310-cp310-win_amd64.whl", hash = "sha256:35371f8438028fdccfaf3570b31d98e8d9eda8bb1d6ab9473f5a390969e98717"}, + {file = "coverage-7.6.9-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:932fc826442132dde42ee52cf66d941f581c685a6313feebed358411238f60f9"}, + {file = "coverage-7.6.9-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:085161be5f3b30fd9b3e7b9a8c301f935c8313dcf928a07b116324abea2c1c2c"}, + {file = "coverage-7.6.9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ccc660a77e1c2bf24ddbce969af9447a9474790160cfb23de6be4fa88e3951c7"}, + {file = "coverage-7.6.9-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c69e42c892c018cd3c8d90da61d845f50a8243062b19d228189b0224150018a9"}, + {file = "coverage-7.6.9-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0824a28ec542a0be22f60c6ac36d679e0e262e5353203bea81d44ee81fe9c6d4"}, + {file = "coverage-7.6.9-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:4401ae5fc52ad8d26d2a5d8a7428b0f0c72431683f8e63e42e70606374c311a1"}, + {file = "coverage-7.6.9-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:98caba4476a6c8d59ec1eb00c7dd862ba9beca34085642d46ed503cc2d440d4b"}, + {file = "coverage-7.6.9-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ee5defd1733fd6ec08b168bd4f5387d5b322f45ca9e0e6c817ea6c4cd36313e3"}, + {file = "coverage-7.6.9-cp311-cp311-win32.whl", hash = "sha256:f2d1ec60d6d256bdf298cb86b78dd715980828f50c46701abc3b0a2b3f8a0dc0"}, + {file = "coverage-7.6.9-cp311-cp311-win_amd64.whl", hash = "sha256:0d59fd927b1f04de57a2ba0137166d31c1a6dd9e764ad4af552912d70428c92b"}, + {file = "coverage-7.6.9-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:99e266ae0b5d15f1ca8d278a668df6f51cc4b854513daab5cae695ed7b721cf8"}, + {file = "coverage-7.6.9-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9901d36492009a0a9b94b20e52ebfc8453bf49bb2b27bca2c9706f8b4f5a554a"}, + {file = "coverage-7.6.9-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:abd3e72dd5b97e3af4246cdada7738ef0e608168de952b837b8dd7e90341f015"}, + {file = "coverage-7.6.9-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ff74026a461eb0660366fb01c650c1d00f833a086b336bdad7ab00cc952072b3"}, + {file = "coverage-7.6.9-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:65dad5a248823a4996724a88eb51d4b31587aa7aa428562dbe459c684e5787ae"}, + {file = "coverage-7.6.9-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:22be16571504c9ccea919fcedb459d5ab20d41172056206eb2994e2ff06118a4"}, + {file = "coverage-7.6.9-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:0f957943bc718b87144ecaee70762bc2bc3f1a7a53c7b861103546d3a403f0a6"}, + {file = "coverage-7.6.9-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0ae1387db4aecb1f485fb70a6c0148c6cdaebb6038f1d40089b1fc84a5db556f"}, + {file = "coverage-7.6.9-cp312-cp312-win32.whl", hash = "sha256:1a330812d9cc7ac2182586f6d41b4d0fadf9be9049f350e0efb275c8ee8eb692"}, + {file = "coverage-7.6.9-cp312-cp312-win_amd64.whl", hash = "sha256:b12c6b18269ca471eedd41c1b6a1065b2f7827508edb9a7ed5555e9a56dcfc97"}, + {file = "coverage-7.6.9-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:899b8cd4781c400454f2f64f7776a5d87bbd7b3e7f7bda0cb18f857bb1334664"}, + {file = "coverage-7.6.9-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:61f70dc68bd36810972e55bbbe83674ea073dd1dcc121040a08cdf3416c5349c"}, + {file = "coverage-7.6.9-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a289d23d4c46f1a82d5db4abeb40b9b5be91731ee19a379d15790e53031c014"}, + {file = "coverage-7.6.9-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7e216d8044a356fc0337c7a2a0536d6de07888d7bcda76febcb8adc50bdbbd00"}, + {file = "coverage-7.6.9-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3c026eb44f744acaa2bda7493dad903aa5bf5fc4f2554293a798d5606710055d"}, + {file = "coverage-7.6.9-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e77363e8425325384f9d49272c54045bbed2f478e9dd698dbc65dbc37860eb0a"}, + {file = "coverage-7.6.9-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:777abfab476cf83b5177b84d7486497e034eb9eaea0d746ce0c1268c71652077"}, + {file = "coverage-7.6.9-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:447af20e25fdbe16f26e84eb714ba21d98868705cb138252d28bc400381f6ffb"}, + {file = "coverage-7.6.9-cp313-cp313-win32.whl", hash = "sha256:d872ec5aeb086cbea771c573600d47944eea2dcba8be5f3ee649bfe3cb8dc9ba"}, + {file = "coverage-7.6.9-cp313-cp313-win_amd64.whl", hash = "sha256:fd1213c86e48dfdc5a0cc676551db467495a95a662d2396ecd58e719191446e1"}, + {file = "coverage-7.6.9-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:ba9e7484d286cd5a43744e5f47b0b3fb457865baf07bafc6bee91896364e1419"}, + {file = "coverage-7.6.9-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e5ea1cf0872ee455c03e5674b5bca5e3e68e159379c1af0903e89f5eba9ccc3a"}, + {file = "coverage-7.6.9-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2d10e07aa2b91835d6abec555ec8b2733347956991901eea6ffac295f83a30e4"}, + {file = "coverage-7.6.9-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:13a9e2d3ee855db3dd6ea1ba5203316a1b1fd8eaeffc37c5b54987e61e4194ae"}, + {file = "coverage-7.6.9-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c38bf15a40ccf5619fa2fe8f26106c7e8e080d7760aeccb3722664c8656b030"}, + {file = "coverage-7.6.9-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:d5275455b3e4627c8e7154feaf7ee0743c2e7af82f6e3b561967b1cca755a0be"}, + {file = "coverage-7.6.9-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:8f8770dfc6e2c6a2d4569f411015c8d751c980d17a14b0530da2d7f27ffdd88e"}, + {file = "coverage-7.6.9-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:8d2dfa71665a29b153a9681edb1c8d9c1ea50dfc2375fb4dac99ea7e21a0bcd9"}, + {file = "coverage-7.6.9-cp313-cp313t-win32.whl", hash = "sha256:5e6b86b5847a016d0fbd31ffe1001b63355ed309651851295315031ea7eb5a9b"}, + {file = "coverage-7.6.9-cp313-cp313t-win_amd64.whl", hash = "sha256:97ddc94d46088304772d21b060041c97fc16bdda13c6c7f9d8fcd8d5ae0d8611"}, + {file = "coverage-7.6.9-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:adb697c0bd35100dc690de83154627fbab1f4f3c0386df266dded865fc50a902"}, + {file = "coverage-7.6.9-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:be57b6d56e49c2739cdf776839a92330e933dd5e5d929966fbbd380c77f060be"}, + {file = "coverage-7.6.9-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f1592791f8204ae9166de22ba7e6705fa4ebd02936c09436a1bb85aabca3e599"}, + {file = "coverage-7.6.9-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4e12ae8cc979cf83d258acb5e1f1cf2f3f83524d1564a49d20b8bec14b637f08"}, + {file = "coverage-7.6.9-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bb5555cff66c4d3d6213a296b360f9e1a8e323e74e0426b6c10ed7f4d021e464"}, + {file = "coverage-7.6.9-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:b9389a429e0e5142e69d5bf4a435dd688c14478a19bb901735cdf75e57b13845"}, + {file = "coverage-7.6.9-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:592ac539812e9b46046620341498caf09ca21023c41c893e1eb9dbda00a70cbf"}, + {file = "coverage-7.6.9-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:a27801adef24cc30871da98a105f77995e13a25a505a0161911f6aafbd66e678"}, + {file = "coverage-7.6.9-cp39-cp39-win32.whl", hash = "sha256:8e3c3e38930cfb729cb8137d7f055e5a473ddaf1217966aa6238c88bd9fd50e6"}, + {file = "coverage-7.6.9-cp39-cp39-win_amd64.whl", hash = "sha256:e28bf44afa2b187cc9f41749138a64435bf340adfcacb5b2290c070ce99839d4"}, + {file = "coverage-7.6.9-pp39.pp310-none-any.whl", hash = "sha256:f3ca78518bc6bc92828cd11867b121891d75cae4ea9e908d72030609b996db1b"}, + {file = "coverage-7.6.9.tar.gz", hash = "sha256:4a8d8977b0c6ef5aeadcb644da9e69ae0dcfe66ec7f368c89c72e058bd71164d"}, ] [package.dependencies] @@ -1087,66 +1087,66 @@ files = [ [[package]] name = "numpy" -version = "2.1.3" +version = "2.2.0" description = "Fundamental package for array computing in Python" optional = true python-versions = ">=3.10" files = [ - {file = "numpy-2.1.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c894b4305373b9c5576d7a12b473702afdf48ce5369c074ba304cc5ad8730dff"}, - {file = "numpy-2.1.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b47fbb433d3260adcd51eb54f92a2ffbc90a4595f8970ee00e064c644ac788f5"}, - {file = "numpy-2.1.3-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:825656d0743699c529c5943554d223c021ff0494ff1442152ce887ef4f7561a1"}, - {file = "numpy-2.1.3-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:6a4825252fcc430a182ac4dee5a505053d262c807f8a924603d411f6718b88fd"}, - {file = "numpy-2.1.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e711e02f49e176a01d0349d82cb5f05ba4db7d5e7e0defd026328e5cfb3226d3"}, - {file = "numpy-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78574ac2d1a4a02421f25da9559850d59457bac82f2b8d7a44fe83a64f770098"}, - {file = "numpy-2.1.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:c7662f0e3673fe4e832fe07b65c50342ea27d989f92c80355658c7f888fcc83c"}, - {file = "numpy-2.1.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:fa2d1337dc61c8dc417fbccf20f6d1e139896a30721b7f1e832b2bb6ef4eb6c4"}, - {file = "numpy-2.1.3-cp310-cp310-win32.whl", hash = "sha256:72dcc4a35a8515d83e76b58fdf8113a5c969ccd505c8a946759b24e3182d1f23"}, - {file = "numpy-2.1.3-cp310-cp310-win_amd64.whl", hash = "sha256:ecc76a9ba2911d8d37ac01de72834d8849e55473457558e12995f4cd53e778e0"}, - {file = "numpy-2.1.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4d1167c53b93f1f5d8a139a742b3c6f4d429b54e74e6b57d0eff40045187b15d"}, - {file = "numpy-2.1.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c80e4a09b3d95b4e1cac08643f1152fa71a0a821a2d4277334c88d54b2219a41"}, - {file = "numpy-2.1.3-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:576a1c1d25e9e02ed7fa5477f30a127fe56debd53b8d2c89d5578f9857d03ca9"}, - {file = "numpy-2.1.3-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:973faafebaae4c0aaa1a1ca1ce02434554d67e628b8d805e61f874b84e136b09"}, - {file = "numpy-2.1.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:762479be47a4863e261a840e8e01608d124ee1361e48b96916f38b119cfda04a"}, - {file = "numpy-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc6f24b3d1ecc1eebfbf5d6051faa49af40b03be1aaa781ebdadcbc090b4539b"}, - {file = "numpy-2.1.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:17ee83a1f4fef3c94d16dc1802b998668b5419362c8a4f4e8a491de1b41cc3ee"}, - {file = "numpy-2.1.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:15cb89f39fa6d0bdfb600ea24b250e5f1a3df23f901f51c8debaa6a5d122b2f0"}, - {file = "numpy-2.1.3-cp311-cp311-win32.whl", hash = "sha256:d9beb777a78c331580705326d2367488d5bc473b49a9bc3036c154832520aca9"}, - {file = "numpy-2.1.3-cp311-cp311-win_amd64.whl", hash = "sha256:d89dd2b6da69c4fff5e39c28a382199ddedc3a5be5390115608345dec660b9e2"}, - {file = "numpy-2.1.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:f55ba01150f52b1027829b50d70ef1dafd9821ea82905b63936668403c3b471e"}, - {file = "numpy-2.1.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:13138eadd4f4da03074851a698ffa7e405f41a0845a6b1ad135b81596e4e9958"}, - {file = "numpy-2.1.3-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:a6b46587b14b888e95e4a24d7b13ae91fa22386c199ee7b418f449032b2fa3b8"}, - {file = "numpy-2.1.3-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:0fa14563cc46422e99daef53d725d0c326e99e468a9320a240affffe87852564"}, - {file = "numpy-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8637dcd2caa676e475503d1f8fdb327bc495554e10838019651b76d17b98e512"}, - {file = "numpy-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2312b2aa89e1f43ecea6da6ea9a810d06aae08321609d8dc0d0eda6d946a541b"}, - {file = "numpy-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a38c19106902bb19351b83802531fea19dee18e5b37b36454f27f11ff956f7fc"}, - {file = "numpy-2.1.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:02135ade8b8a84011cbb67dc44e07c58f28575cf9ecf8ab304e51c05528c19f0"}, - {file = "numpy-2.1.3-cp312-cp312-win32.whl", hash = "sha256:e6988e90fcf617da2b5c78902fe8e668361b43b4fe26dbf2d7b0f8034d4cafb9"}, - {file = "numpy-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:0d30c543f02e84e92c4b1f415b7c6b5326cbe45ee7882b6b77db7195fb971e3a"}, - {file = "numpy-2.1.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:96fe52fcdb9345b7cd82ecd34547fca4321f7656d500eca497eb7ea5a926692f"}, - {file = "numpy-2.1.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f653490b33e9c3a4c1c01d41bc2aef08f9475af51146e4a7710c450cf9761598"}, - {file = "numpy-2.1.3-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:dc258a761a16daa791081d026f0ed4399b582712e6fc887a95af09df10c5ca57"}, - {file = "numpy-2.1.3-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:016d0f6f5e77b0f0d45d77387ffa4bb89816b57c835580c3ce8e099ef830befe"}, - {file = "numpy-2.1.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c181ba05ce8299c7aa3125c27b9c2167bca4a4445b7ce73d5febc411ca692e43"}, - {file = "numpy-2.1.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5641516794ca9e5f8a4d17bb45446998c6554704d888f86df9b200e66bdcce56"}, - {file = "numpy-2.1.3-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ea4dedd6e394a9c180b33c2c872b92f7ce0f8e7ad93e9585312b0c5a04777a4a"}, - {file = "numpy-2.1.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b0df3635b9c8ef48bd3be5f862cf71b0a4716fa0e702155c45067c6b711ddcef"}, - {file = "numpy-2.1.3-cp313-cp313-win32.whl", hash = "sha256:50ca6aba6e163363f132b5c101ba078b8cbd3fa92c7865fd7d4d62d9779ac29f"}, - {file = "numpy-2.1.3-cp313-cp313-win_amd64.whl", hash = "sha256:747641635d3d44bcb380d950679462fae44f54b131be347d5ec2bce47d3df9ed"}, - {file = "numpy-2.1.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:996bb9399059c5b82f76b53ff8bb686069c05acc94656bb259b1d63d04a9506f"}, - {file = "numpy-2.1.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:45966d859916ad02b779706bb43b954281db43e185015df6eb3323120188f9e4"}, - {file = "numpy-2.1.3-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:baed7e8d7481bfe0874b566850cb0b85243e982388b7b23348c6db2ee2b2ae8e"}, - {file = "numpy-2.1.3-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:a9f7f672a3388133335589cfca93ed468509cb7b93ba3105fce780d04a6576a0"}, - {file = "numpy-2.1.3-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7aac50327da5d208db2eec22eb11e491e3fe13d22653dce51b0f4109101b408"}, - {file = "numpy-2.1.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4394bc0dbd074b7f9b52024832d16e019decebf86caf909d94f6b3f77a8ee3b6"}, - {file = "numpy-2.1.3-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:50d18c4358a0a8a53f12a8ba9d772ab2d460321e6a93d6064fc22443d189853f"}, - {file = "numpy-2.1.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:14e253bd43fc6b37af4921b10f6add6925878a42a0c5fe83daee390bca80bc17"}, - {file = "numpy-2.1.3-cp313-cp313t-win32.whl", hash = "sha256:08788d27a5fd867a663f6fc753fd7c3ad7e92747efc73c53bca2f19f8bc06f48"}, - {file = "numpy-2.1.3-cp313-cp313t-win_amd64.whl", hash = "sha256:2564fbdf2b99b3f815f2107c1bbc93e2de8ee655a69c261363a1172a79a257d4"}, - {file = "numpy-2.1.3-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:4f2015dfe437dfebbfce7c85c7b53d81ba49e71ba7eadbf1df40c915af75979f"}, - {file = "numpy-2.1.3-pp310-pypy310_pp73-macosx_14_0_x86_64.whl", hash = "sha256:3522b0dfe983a575e6a9ab3a4a4dfe156c3e428468ff08ce582b9bb6bd1d71d4"}, - {file = "numpy-2.1.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c006b607a865b07cd981ccb218a04fc86b600411d83d6fc261357f1c0966755d"}, - {file = "numpy-2.1.3-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:e14e26956e6f1696070788252dcdff11b4aca4c3e8bd166e0df1bb8f315a67cb"}, - {file = "numpy-2.1.3.tar.gz", hash = "sha256:aa08e04e08aaf974d4458def539dece0d28146d866a39da5639596f4921fd761"}, + {file = "numpy-2.2.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1e25507d85da11ff5066269d0bd25d06e0a0f2e908415534f3e603d2a78e4ffa"}, + {file = "numpy-2.2.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a62eb442011776e4036af5c8b1a00b706c5bc02dc15eb5344b0c750428c94219"}, + {file = "numpy-2.2.0-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:b606b1aaf802e6468c2608c65ff7ece53eae1a6874b3765f69b8ceb20c5fa78e"}, + {file = "numpy-2.2.0-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:36b2b43146f646642b425dd2027730f99bac962618ec2052932157e213a040e9"}, + {file = "numpy-2.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7fe8f3583e0607ad4e43a954e35c1748b553bfe9fdac8635c02058023277d1b3"}, + {file = "numpy-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:122fd2fcfafdefc889c64ad99c228d5a1f9692c3a83f56c292618a59aa60ae83"}, + {file = "numpy-2.2.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:3f2f5cddeaa4424a0a118924b988746db6ffa8565e5829b1841a8a3bd73eb59a"}, + {file = "numpy-2.2.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:7fe4bb0695fe986a9e4deec3b6857003b4cfe5c5e4aac0b95f6a658c14635e31"}, + {file = "numpy-2.2.0-cp310-cp310-win32.whl", hash = "sha256:b30042fe92dbd79f1ba7f6898fada10bdaad1847c44f2dff9a16147e00a93661"}, + {file = "numpy-2.2.0-cp310-cp310-win_amd64.whl", hash = "sha256:54dc1d6d66f8d37843ed281773c7174f03bf7ad826523f73435deb88ba60d2d4"}, + {file = "numpy-2.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9874bc2ff574c40ab7a5cbb7464bf9b045d617e36754a7bc93f933d52bd9ffc6"}, + {file = "numpy-2.2.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:0da8495970f6b101ddd0c38ace92edea30e7e12b9a926b57f5fabb1ecc25bb90"}, + {file = "numpy-2.2.0-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:0557eebc699c1c34cccdd8c3778c9294e8196df27d713706895edc6f57d29608"}, + {file = "numpy-2.2.0-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:3579eaeb5e07f3ded59298ce22b65f877a86ba8e9fe701f5576c99bb17c283da"}, + {file = "numpy-2.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:40deb10198bbaa531509aad0cd2f9fadb26c8b94070831e2208e7df543562b74"}, + {file = "numpy-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c2aed8fcf8abc3020d6a9ccb31dbc9e7d7819c56a348cc88fd44be269b37427e"}, + {file = "numpy-2.2.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a222d764352c773aa5ebde02dd84dba3279c81c6db2e482d62a3fa54e5ece69b"}, + {file = "numpy-2.2.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:4e58666988605e251d42c2818c7d3d8991555381be26399303053b58a5bbf30d"}, + {file = "numpy-2.2.0-cp311-cp311-win32.whl", hash = "sha256:4723a50e1523e1de4fccd1b9a6dcea750c2102461e9a02b2ac55ffeae09a4410"}, + {file = "numpy-2.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:16757cf28621e43e252c560d25b15f18a2f11da94fea344bf26c599b9cf54b73"}, + {file = "numpy-2.2.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:cff210198bb4cae3f3c100444c5eaa573a823f05c253e7188e1362a5555235b3"}, + {file = "numpy-2.2.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:58b92a5828bd4d9aa0952492b7de803135038de47343b2aa3cc23f3b71a3dc4e"}, + {file = "numpy-2.2.0-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:ebe5e59545401fbb1b24da76f006ab19734ae71e703cdb4a8b347e84a0cece67"}, + {file = "numpy-2.2.0-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:e2b8cd48a9942ed3f85b95ca4105c45758438c7ed28fff1e4ce3e57c3b589d8e"}, + {file = "numpy-2.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:57fcc997ffc0bef234b8875a54d4058afa92b0b0c4223fc1f62f24b3b5e86038"}, + {file = "numpy-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:85ad7d11b309bd132d74397fcf2920933c9d1dc865487128f5c03d580f2c3d03"}, + {file = "numpy-2.2.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:cb24cca1968b21355cc6f3da1a20cd1cebd8a023e3c5b09b432444617949085a"}, + {file = "numpy-2.2.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0798b138c291d792f8ea40fe3768610f3c7dd2574389e37c3f26573757c8f7ef"}, + {file = "numpy-2.2.0-cp312-cp312-win32.whl", hash = "sha256:afe8fb968743d40435c3827632fd36c5fbde633b0423da7692e426529b1759b1"}, + {file = "numpy-2.2.0-cp312-cp312-win_amd64.whl", hash = "sha256:3a4199f519e57d517ebd48cb76b36c82da0360781c6a0353e64c0cac30ecaad3"}, + {file = "numpy-2.2.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f8c8b141ef9699ae777c6278b52c706b653bf15d135d302754f6b2e90eb30367"}, + {file = "numpy-2.2.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0f0986e917aca18f7a567b812ef7ca9391288e2acb7a4308aa9d265bd724bdae"}, + {file = "numpy-2.2.0-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:1c92113619f7b272838b8d6702a7f8ebe5edea0df48166c47929611d0b4dea69"}, + {file = "numpy-2.2.0-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:5a145e956b374e72ad1dff82779177d4a3c62bc8248f41b80cb5122e68f22d13"}, + {file = "numpy-2.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:18142b497d70a34b01642b9feabb70156311b326fdddd875a9981f34a369b671"}, + {file = "numpy-2.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a7d41d1612c1a82b64697e894b75db6758d4f21c3ec069d841e60ebe54b5b571"}, + {file = "numpy-2.2.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a98f6f20465e7618c83252c02041517bd2f7ea29be5378f09667a8f654a5918d"}, + {file = "numpy-2.2.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e09d40edfdb4e260cb1567d8ae770ccf3b8b7e9f0d9b5c2a9992696b30ce2742"}, + {file = "numpy-2.2.0-cp313-cp313-win32.whl", hash = "sha256:3905a5fffcc23e597ee4d9fb3fcd209bd658c352657548db7316e810ca80458e"}, + {file = "numpy-2.2.0-cp313-cp313-win_amd64.whl", hash = "sha256:a184288538e6ad699cbe6b24859206e38ce5fba28f3bcfa51c90d0502c1582b2"}, + {file = "numpy-2.2.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:7832f9e8eb00be32f15fdfb9a981d6955ea9adc8574c521d48710171b6c55e95"}, + {file = "numpy-2.2.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:f0dd071b95bbca244f4cb7f70b77d2ff3aaaba7fa16dc41f58d14854a6204e6c"}, + {file = "numpy-2.2.0-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:b0b227dcff8cdc3efbce66d4e50891f04d0a387cce282fe1e66199146a6a8fca"}, + {file = "numpy-2.2.0-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:6ab153263a7c5ccaf6dfe7e53447b74f77789f28ecb278c3b5d49db7ece10d6d"}, + {file = "numpy-2.2.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e500aba968a48e9019e42c0c199b7ec0696a97fa69037bea163b55398e390529"}, + {file = "numpy-2.2.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:440cfb3db4c5029775803794f8638fbdbf71ec702caf32735f53b008e1eaece3"}, + {file = "numpy-2.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a55dc7a7f0b6198b07ec0cd445fbb98b05234e8b00c5ac4874a63372ba98d4ab"}, + {file = "numpy-2.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4bddbaa30d78c86329b26bd6aaaea06b1e47444da99eddac7bf1e2fab717bd72"}, + {file = "numpy-2.2.0-cp313-cp313t-win32.whl", hash = "sha256:30bf971c12e4365153afb31fc73f441d4da157153f3400b82db32d04de1e4066"}, + {file = "numpy-2.2.0-cp313-cp313t-win_amd64.whl", hash = "sha256:d35717333b39d1b6bb8433fa758a55f1081543de527171543a2b710551d40881"}, + {file = "numpy-2.2.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:e12c6c1ce84628c52d6367863773f7c8c8241be554e8b79686e91a43f1733773"}, + {file = "numpy-2.2.0-pp310-pypy310_pp73-macosx_14_0_x86_64.whl", hash = "sha256:b6207dc8fb3c8cb5668e885cef9ec7f70189bec4e276f0ff70d5aa078d32c88e"}, + {file = "numpy-2.2.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a50aeff71d0f97b6450d33940c7181b08be1441c6c193e678211bff11aa725e7"}, + {file = "numpy-2.2.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:df12a1f99b99f569a7c2ae59aa2d31724e8d835fc7f33e14f4792e3071d11221"}, + {file = "numpy-2.2.0.tar.gz", hash = "sha256:140dd80ff8981a583a60980be1a655068f8adebf7a45a06a6858c873fcdcd4a0"}, ] [[package]] @@ -1318,13 +1318,13 @@ files = [ [[package]] name = "pkginfo" -version = "1.11.2" +version = "1.12.0" description = "Query metadata from sdists / bdists / installed packages." optional = false python-versions = ">=3.8" files = [ - {file = "pkginfo-1.11.2-py3-none-any.whl", hash = "sha256:9ec518eefccd159de7ed45386a6bb4c6ca5fa2cb3bd9b71154fae44f6f1b36a3"}, - {file = "pkginfo-1.11.2.tar.gz", hash = "sha256:c6bc916b8298d159e31f2c216e35ee5b86da7da18874f879798d0a1983537c86"}, + {file = "pkginfo-1.12.0-py3-none-any.whl", hash = "sha256:dcd589c9be4da8973eceffa247733c144812759aa67eaf4bbf97016a02f39088"}, + {file = "pkginfo-1.12.0.tar.gz", hash = "sha256:8ad91a0445a036782b9366ef8b8c2c50291f83a553478ba8580c73d3215700cf"}, ] [package.extras] @@ -1406,22 +1406,22 @@ wcwidth = "*" [[package]] name = "protobuf" -version = "5.29.0" +version = "5.29.1" description = "" optional = false python-versions = ">=3.8" files = [ - {file = "protobuf-5.29.0-cp310-abi3-win32.whl", hash = "sha256:ea7fb379b257911c8c020688d455e8f74efd2f734b72dc1ea4b4d7e9fd1326f2"}, - {file = "protobuf-5.29.0-cp310-abi3-win_amd64.whl", hash = "sha256:34a90cf30c908f47f40ebea7811f743d360e202b6f10d40c02529ebd84afc069"}, - {file = "protobuf-5.29.0-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:c931c61d0cc143a2e756b1e7f8197a508de5365efd40f83c907a9febf36e6b43"}, - {file = "protobuf-5.29.0-cp38-abi3-manylinux2014_aarch64.whl", hash = "sha256:85286a47caf63b34fa92fdc1fd98b649a8895db595cfa746c5286eeae890a0b1"}, - {file = "protobuf-5.29.0-cp38-abi3-manylinux2014_x86_64.whl", hash = "sha256:0d10091d6d03537c3f902279fcf11e95372bdd36a79556311da0487455791b20"}, - {file = "protobuf-5.29.0-cp38-cp38-win32.whl", hash = "sha256:0cd67a1e5c2d88930aa767f702773b2d054e29957432d7c6a18f8be02a07719a"}, - {file = "protobuf-5.29.0-cp38-cp38-win_amd64.whl", hash = "sha256:e467f81fdd12ded9655cea3e9b83dc319d93b394ce810b556fb0f421d8613e86"}, - {file = "protobuf-5.29.0-cp39-cp39-win32.whl", hash = "sha256:17d128eebbd5d8aee80300aed7a43a48a25170af3337f6f1333d1fac2c6839ac"}, - {file = "protobuf-5.29.0-cp39-cp39-win_amd64.whl", hash = "sha256:6c3009e22717c6cc9e6594bb11ef9f15f669b19957ad4087214d69e08a213368"}, - {file = "protobuf-5.29.0-py3-none-any.whl", hash = "sha256:88c4af76a73183e21061881360240c0cdd3c39d263b4e8fb570aaf83348d608f"}, - {file = "protobuf-5.29.0.tar.gz", hash = "sha256:445a0c02483869ed8513a585d80020d012c6dc60075f96fa0563a724987b1001"}, + {file = "protobuf-5.29.1-cp310-abi3-win32.whl", hash = "sha256:22c1f539024241ee545cbcb00ee160ad1877975690b16656ff87dde107b5f110"}, + {file = "protobuf-5.29.1-cp310-abi3-win_amd64.whl", hash = "sha256:1fc55267f086dd4050d18ef839d7bd69300d0d08c2a53ca7df3920cc271a3c34"}, + {file = "protobuf-5.29.1-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:d473655e29c0c4bbf8b69e9a8fb54645bc289dead6d753b952e7aa660254ae18"}, + {file = "protobuf-5.29.1-cp38-abi3-manylinux2014_aarch64.whl", hash = "sha256:b5ba1d0e4c8a40ae0496d0e2ecfdbb82e1776928a205106d14ad6985a09ec155"}, + {file = "protobuf-5.29.1-cp38-abi3-manylinux2014_x86_64.whl", hash = "sha256:8ee1461b3af56145aca2800e6a3e2f928108c749ba8feccc6f5dd0062c410c0d"}, + {file = "protobuf-5.29.1-cp38-cp38-win32.whl", hash = "sha256:50879eb0eb1246e3a5eabbbe566b44b10348939b7cc1b267567e8c3d07213853"}, + {file = "protobuf-5.29.1-cp38-cp38-win_amd64.whl", hash = "sha256:027fbcc48cea65a6b17028510fdd054147057fa78f4772eb547b9274e5219331"}, + {file = "protobuf-5.29.1-cp39-cp39-win32.whl", hash = "sha256:5a41deccfa5e745cef5c65a560c76ec0ed8e70908a67cc8f4da5fce588b50d57"}, + {file = "protobuf-5.29.1-cp39-cp39-win_amd64.whl", hash = "sha256:012ce28d862ff417fd629285aca5d9772807f15ceb1a0dbd15b88f58c776c98c"}, + {file = "protobuf-5.29.1-py3-none-any.whl", hash = "sha256:32600ddb9c2a53dedc25b8581ea0f1fd8ea04956373c0c07577ce58d312522e0"}, + {file = "protobuf-5.29.1.tar.gz", hash = "sha256:683be02ca21a6ffe80db6dd02c0b5b2892322c59ca57fd6c872d652cb80549cb"}, ] [[package]] @@ -2035,13 +2035,13 @@ test = ["pytest", "pytest-cov"] [[package]] name = "six" -version = "1.16.0" +version = "1.17.0" description = "Python 2 and 3 compatibility utilities" optional = true -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" files = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, + {file = "six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274"}, + {file = "six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"}, ] [[package]] diff --git a/scripts/custom_checks/docstrings.py b/scripts/custom_checks/docstrings.py index 7f4b5131b..f414b58d1 100644 --- a/scripts/custom_checks/docstrings.py +++ b/scripts/custom_checks/docstrings.py @@ -262,9 +262,11 @@ def docstring_is_correct(self): # Takes no args? not self.actual_annotations # Do the variables match? ...correct order? - or list(self.actual_annotations.keys()) == list(parsed_annotations.keys()) - # Do the annotations match? - and list(self.actual_annotations.values()) == list(parsed_annotations.values()) + or ( + list(self.actual_annotations.keys()) == list(parsed_annotations.keys()) + # Do the annotations match? + and list(self.actual_annotations.values()) == list(parsed_annotations.values()) + ) ) return return_annot_is_correct and parameters_are_correct @@ -403,7 +405,7 @@ def format_docstring_function(fn) -> list[str]: # of the decorator function! fn = inspect.unwrap(fn) - if fn in FUNC_EXCEPTIONS or TESTING and fn not in ONLY_RUN_FUNCS or not (doc := fn.__doc__): + if fn in FUNC_EXCEPTIONS or (TESTING and fn not in ONLY_RUN_FUNCS) or not (doc := fn.__doc__): return [] fn_description = f"function: {fn.__name__}" diff --git a/tests/tests_integration/test_api/test_datapoints.py b/tests/tests_integration/test_api/test_datapoints.py index e66d6223d..834cbc2b9 100644 --- a/tests/tests_integration/test_api/test_datapoints.py +++ b/tests/tests_integration/test_api/test_datapoints.py @@ -1240,9 +1240,9 @@ def test_status_codes_and_symbols(self, retrieve_endpoints, ts_status_codes): "GoodEntryReplaced", "UncertainReferenceOutOfServer", ] - assert not b1.value and not b2.value - assert not b1.status_code and not b2.status_code - assert not b1.status_symbol and not b2.status_symbol + assert len(b1.value) == 0 and len(b2.value) == 0 + assert len(b1.status_code) == 0 and len(b2.status_code) == 0 + assert len(b1.status_symbol) == 0 and len(b2.status_symbol) == 0 assert b3.value[0] == -math.inf if uses_numpy: