You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However these new type hints are not supported by older python versions so it makes sense to introduce typing_extensions as a dependency to the project to retrofit the typehints to older versions.
The text was updated successfully, but these errors were encountered:
PEP-655 introduced the
Required
andNotRequired
type hints forTypedDicts
, this can be used as a simplification in the*Required
type hints like.Example:
can be simplified into a single object like:
or alternatively:
However these new type hints are not supported by older python versions so it makes sense to introduce typing_extensions as a dependency to the project to retrofit the typehints to older versions.
The text was updated successfully, but these errors were encountered: