Skip to content

Are type-checker directives in the body of a TypedDict class disallowed? #1914

Answered by JelleZijlstra
bzoracler asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@erictraut
Comment options

@bzoracler
Comment options

@sobolevn
Comment options

@erictraut
Comment options

Answer selected by bzoracler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants