Can typing.TypedDict
inherit another TypedDict’s properties and add its own? Will multiple inheritance work with TpyedDict?
Found an answer in TypedDict
’s documentation: yes, it can inherit other TypedDict.
In case helpful in the future, the best reference for information like this is the Python typing spec: Specification for the Python type system — typing documentation
Here’s the section on TypedDict inheritance: Typed dictionaries — typing documentation