You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into this bug while type-checking a meta class which dynamically creates and stores an enum of all the target class' properties which are also decorated with a custom @ocr_series:
~ uv run mypy --config-file pyproject.toml src/my_project --show-traceback
src/my_project/core/document.py:94: error: Enum type as attribute is not supported [misc]
src/my_project/core/document.py:94: error: Second argument of Enum() must be string, tuple, list or dict literal for mypy to determine Enum members [misc]
src/my_project/core/document.py:97: error: Type cannot be declared in assignment to non-self attribute [misc]
src/my_project/core/document.py:94: 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.13.0
Traceback (most recent call last):
File "mypy/semanal.py", line 7113, in accept
File "mypy/nodes.py", line 1351, in accept
File "mypy/semanal.py", line 3141, in visit_assignment_stmt
File "mypy/semanal.py", line 3372, in record_special_form_lvalue
AssertionError:
src/my_project/core/document.py:94: : note: use --pdb to drop into pdb
The text was updated successfully, but these errors were encountered:
Ran into this bug while type-checking a meta class which dynamically creates and stores an enum of all the target class' properties which are also decorated with a custom
@ocr_series
:MyPy traceback:
~ uv run mypy --config-file pyproject.toml src/my_project --show-traceback
The text was updated successfully, but these errors were encountered: