Skip to content
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

Reenable mypy #100

Merged

Conversation

sgt0
Copy link
Contributor

@sgt0 sgt0 commented Oct 4, 2024

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

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
@LightArrowsEXE LightArrowsEXE merged commit 8550361 into Jaded-Encoding-Thaumaturgy:master Oct 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants