Collection of awesome Python types, stubs, plugins, and tools to work with them.
Collection of awesome Python types, stubs, plugins, and tools to work with them.
Full list of typed projects on PyPi is here.
O(1)
runtime type-checking in pure Python.collections.abc
and operators
alternative: Flexible single-method protocols and typed operators with predictable names.X | Y
.typing
module.None
.Final
constants and inheritance.Literal
types.typing
module.PEP612
allows you do a lot of advanced typing things with functions and their signatures.