-
Notifications
You must be signed in to change notification settings - Fork 13
Typing fixes #196
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
base: main
Are you sure you want to change the base?
Typing fixes #196
Conversation
In aiida-core, we're passing a set() as haskeys argument, but set is not a Sequence so mypy in aiida-core complains. typing.Iterable correctly captures the type what we accept, since we anyway convert it to `set` internally.
|
|
||
| if TYPE_CHECKING: | ||
| from container import ObjectType | ||
| from .container import ObjectType |
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.
Unrelated fix
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #196 +/- ##
=======================================
Coverage 99.67% 99.67%
=======================================
Files 10 10
Lines 2143 2143
=======================================
Hits 2136 2136
Misses 7 7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@edan-bainglass since you've reviewed the corresponding |
edan-bainglass
left a comment
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!
|
Cheers @edan-bainglass 🫶 I can't merge PRs on this repo so leaving that to @GeigerJ2 |
This PR contains to typing fixes that were uncovered by adding typing in aiida-core in aiidateam/aiida-core#7049
In aiida-core, we're passing a
set()as hashkeys argument, but set is not a Sequence so mypy in aiida-core complains.typing.Iterablecorrectly captures the type what we accept here since we anyway convert it tosetinternally.Remove usage of
mypy_extensions.Argwhich is deprecated and doesn't actually work as intended over at aiida-core repo.