Skip to content
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

[docs] Add example of using @final with TypedDict #18547

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

magicmark
Copy link

Fixes #18543

This is a useful but also non-obvious pattern that seems worthy of a docs example :)

Fixes python#18543

This is a useful but also non-obvious pattern that seems worthy of a docs example :)
Copy link
Collaborator

@A5rocks A5rocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me! I'm not too sure how visible this will end up, but surely it's an improvement on status quo.

docs/source/typed_dict.rst Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Guidance needed: how to narrow unions of TypedDicts?
2 participants