Tag

is_protocol

0 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Oct 18, 2024 · Fundamentals

New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default Types, NoDefault and Performance Improvements

Python 3.13 introduces several typing enhancements—including a ReadOnly type for TypedDict, a @warnings.deprecated decorator, the TypeIs narrowing helper, is_protocol and get_protocol_members utilities, default type support for TypeVar/ParamSpec/TypeVarTuple, the NoDefault sentinel, and notable performance gains by removing legacy typing namespaces.

PythonPython3.13ReadOnly
0 likes · 8 min read
New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default Types, NoDefault and Performance Improvements