All Guides Browse every guide in this knowledge base. Typing Decorators That Preserve Signatures Read → PEP 695 Type Parameter Syntax in Python 3.12 Read → Migrating Generic Classes to PEP 695 Syntax Read → Migrating TypeVar to PEP 695 Generics Read → Python Protocol and Structural Subtyping Read → Defining Callback Protocols with __call__ Read → Protocol vs ABC for Interfaces Read → @runtime_checkable Protocol Pitfalls Read → Python typing.Self and typing.NotRequired Read → typing.Self vs TypeVar for Return Types Read → Python typing.Self for Fluent Interfaces Read → TypeGuard & TypeIs: User-Defined Type Narrowing Read → Previous page Next page