Bug Report
Mypy thinks a type alias isn't a typeddict.
To Reproduce
from typing import TypedDict, Unpack
class A(TypedDict, total=False):
y: int
class B(TypedDict, total=False):
x: str
D = B
class C(A, D): # E: All bases of a new TypedDict must be TypedDict types
pass
Expected Behavior
no errors
Actual Behavior
main.py:10: error: All bases of a new TypedDict must be TypedDict types [misc]
Found 1 error in 1 file (checked 1 source file)
Your Environment
Checked using mypy-play.
- Mypy version used: 1.15
- Mypy command-line flags: N/A
- Mypy configuration options from
mypy.ini (and other config files): N/A
- Python version used: 3.12
Bug Report
Mypy thinks a type alias isn't a typeddict.
To Reproduce
Expected Behavior
no errors
Actual Behavior
Your Environment
Checked using mypy-play.
mypy.ini(and other config files): N/A