-
Notifications
You must be signed in to change notification settings - Fork 29
Sequence not String #1574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sequence not String #1574
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1574 +/- ##
==========================================
+ Coverage 91.56% 91.58% +0.01%
==========================================
Files 120 120
Lines 16797 16830 +33
==========================================
+ Hits 15381 15414 +33
Misses 1416 1416
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Found a few more:
expressions
inSyntheticDatapointsAPI.query
properties
inThreeDRevisionsAPI.filter_nodes
labels
inLabel._load_list
Could you also fix this docstring:
template_names (SequenceNotStr[str] | None): (Optional[Sequence[str]]): Only include instances which has one of these values in their `template_name` field.
->
template_names (SequenceNotStr[str] | None): Only include instances which has one of these values in their `template_name` field.
# Conflicts: # cognite/client/data_classes/extractionpipelines.py
CHANGELOG.md
Outdated
## [7.13.3] - 2024-01-11 | ||
### Changed | ||
- Type hints `Sequence[str]` are now replaced with `SequenceNotStr[str]`. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We doing this now? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking is to have released version consistent with the docs. However, you are right we do not do this, (and we release so often that it will not be outdated for long anyways). Removing as it is no change to functionality.
asset_subtree_ids: int | Sequence[int] | None = None, | ||
asset_subtree_external_ids: str | Sequence[str] | None = None, | ||
asset_subtree_external_ids: str | SequenceNotStr[str] | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that relevant when we also accept str
, but won't hurt.
cognite/client/_api/three_d.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check line endings on this file, looks suspicious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another file for line ending check
# Conflicts: # CHANGELOG.md # cognite/client/_version.py # pyproject.toml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, does @erlendvollset want to have a look before merging?
Description
Please describe the change you have made.
Checklist:
If a new method has been added it should be referenced in cognite.rst in order to generate docs based on its docstring.