-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mostly wanted to fix `GrainPostProcessT` that was crashing mypy for downstream projects: vsdeband/noise.py:79:1: error: Cannot assign multiple types to name "GrainPostProcessT" without an explicit "Type[...]" annotation [misc] GrainPostProcessT = ResolverOneClipArgs | ResolverTwoClipsArgs | str | GrainPP | GrainPP.Resolver ^ vsdeband/noise.py:86: error: INTERNAL ERROR -- Please try using mypy master on GitHub: https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build Please report a bug at https://github.com/python/mypy/issues version: 1.11.2 Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "mypy/semanal.py", line 7087, in accept File "mypy/nodes.py", line 819, in accept File "mypy/semanal.py", line 874, in visit_func_def File "mypy/semanal.py", line 919, in analyze_func_def File "mypy/semanal.py", line 6742, in defer AssertionError: Must not defer during final iteration
- Loading branch information
Showing
4 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "mypy", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(.+):(\\d+):\\s(error|warning|note):\\s(.+)$", | ||
"file": 1, | ||
"line": 2, | ||
"severity": 3, | ||
"message": 4 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
flake8>=7.0.0 | ||
mypy>=1.10.0 | ||
mypy>=1.11.2 | ||
mypy-extensions>=1.0.0 | ||
pycodestyle>=2.11.1 | ||
typing-extensions>=4.11.0 | ||
typing-extensions>=4.12.2 |
This file contains 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