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
mypy-generic.py:9:15: error: Type expected within [...] [misc]
class Derived(Base[int | float]):
^
mypy-generic.py:9:15: error: Invalid base class "Base" [misc]
class Derived(Base[int | float]):
^
Found 2 errors in 1 file (checked 1 source file)
Your Environment
Mypy version used: 0.800
Mypy command-line flags:
Mypy configuration options from mypy.ini (and other config files):
Bug Report
mypy reports an error when the type union operator (PEP 604) is used in a type argument for a generic class.
To Reproduce
Expected Behavior
Actual Behavior
Your Environment
mypy.ini
(and other config files):Python 3.10.0a5 (default, Feb 3 2021, 14:01:21)
Linux 5.10.7-200.fc33.x86_64 #1 SMP Tue Jan 12 20:20:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: