> [!META]- Inline Metadata
> [status:: boat]
> [source:: https://stackoverflow.com/a/70904437/2180093]
> [tags:: #note/evergreen #state/boat #concepts/programming/python ]
> [up:: [[Python MOC]]]
If you want to mark some key optional in a TypedDict definition, you have to use `NotRequired` instead of `Optional`.
## Source
https://stackoverflow.com/a/70904437/2180093