-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongtopic-type-aliasTypeAlias and other type alias issuesTypeAlias and other type alias issuestopic-typed-dict
Description
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
passExpected 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
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-type-aliasTypeAlias and other type alias issuesTypeAlias and other type alias issuestopic-typed-dict