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
I think this should typecheck (subclasses of this can be instantiated without error), but mypy 0.930 says:
mypy-abstract-dataclass.py:5: error: Only concrete class can be given where "Type[Something]" is expected
Found 1 error in 1 file (checked 1 source file)
Your Environment
Mypy version used: 0.930
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files): none
Python version used: 3.10
Operating system and version: Linux
The text was updated successfully, but these errors were encountered:
Consider this snippet, let's name it
mypy-abstract-dataclass.py
:I think this should typecheck (subclasses of this can be instantiated without error), but mypy 0.930 says:
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: