-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow TypedDict
functional syntax as base class
#16701
Labels
Comments
AlexWaygood
added
topic-typed-dict
feature
and removed
bug
mypy got something wrong
labels
Dec 22, 2023
hauntsaninja
pushed a commit
that referenced
this issue
Jan 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Using
TypedDict
's alternative functional syntax as a base class produces aUnsupported dynamic base class "TypedDict" [misc]
error.To Reproduce
Gist: https://mypy-play.net/?mypy=latest&python=3.12&gist=78872722658fe7bd5042cba6318b0432
Expected Behavior
I'd expect a call to
TypedDict
to be allowed to be used as a base class:Actual Behavior
Instead, it produces the following errors:
Your Environment
mypy.ini
(and other config files): N/AThe text was updated successfully, but these errors were encountered: