-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Inheriting from TypedDict/NamedTuple is flagged as invalid #3884
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
Comments
@gaborbernat is your problem related to |
from typing import TypedDict, NamedTuple
class CustomDict(TypedDict):
alpha: int
class CustomTuple(NamedTuple):
beta: int
|
@gaborbernat this issue it the same as #3876. I close this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
See https://bugs.python.org/issue41973, the type of TypedDict/NamedTuple is now function, which apparently is a valid object to inherit from.
The text was updated successfully, but these errors were encountered: