-
-
Notifications
You must be signed in to change notification settings - Fork 254
Extend mypy checks to test/
#4135
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
Merged
+26
−22
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f82f667
Add reproducible mypy make recipe
schnellerhase 452f4ae
Mypy check test/
schnellerhase 4cb783a
Fix: dbc value type
schnellerhase a75f18d
Mypy check (and fix) demo/
schnellerhase 791febb
Merge branch 'main' into schnellerhase/mypy-demo/test
schnellerhase ce1b911
Fix
schnellerhase d9a948d
Merge branch 'main' into schnellerhase/mypy-demo/test
schnellerhase 7cf770b
Allow for 2/3 Python suffix
schnellerhase 9229018
Remove Makefile
jhale 368f892
Add mypy optional dependency set
jhale 337de7a
Remove Makefile use from test
jhale ff42e48
Fix
jhale c66dc20
Merge branch 'main' into schnellerhase/mypy-demo/test
jhale cb9c0dd
Retrigger CI
jhale 33c5f7e
Use mypy config from pyproject.toml
jhale 8d63606
Forget demos, do in follow up PR.
jhale 66789df
Adjust README
jhale df7801e
Improve comment
jhale bf05596
Update README.md
jhale 6705575
Update README.md
jhale 4717c1b
Update README.md
jhale d8ab3d8
Merge branch 'main' into schnellerhase/mypy-demo/test
schnellerhase c23916d
Apply suggestion from @schnellerhase
schnellerhase File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Doesn't this kind of show that the type hint for dirichletbc is wrong?
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.
The problem arises from the explicit
dtype()invocation:demo/demo_pyamg.py:87: error: "dtype[Any]" not callable [operator]I tried multiple fixes but I am not sure how to correctly create a scalar of a certain type in a typing compliant way. Arrays work fine, but constructor of a dtype seems to be a different case.