{{ message }}
Are type-checker directives in the body of a TypedDict class disallowed?
#1914
-
Beta Was this translation helpful? Give feedback.
Answered by
JelleZijlstra
Jan 30, 2025
Replies: 2 comments 4 replies
-
|
I think this should be allowed. Feel free to submit a change to the spec to make this explicit. This should also apply to NamedTuple bodies. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
bzoracler
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I think this should be allowed. Feel free to submit a change to the spec to make this explicit.
This should also apply to NamedTuple bodies.