Skip to content

Type checking for table classes? #2859

Answered by justvanrossum
jenskutilek asked this question in Q&A
Discussion options

You must be logged in to vote

TTFont partially behaves like a dict, so I'd expect we should do something like typing.TypedDict, but I'm not sure how to do that for a class implementing the (Mutable)Mapping protocol.

If it's just about suppressing the noise, perhaps use typing.Any instead of DefaultTable.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jenskutilek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants