Skip to content

py

Components for Python compatibility, introspection, and reflection.

Notes

The functionality here enables us to support multiple versions of Python to maintain forwards- and backwards-compatibility. This enables developers to leverage the bleeding edge of Python typing as new features and innovations are introduced, without having to upgrade to a new version of the language.

Think of this package as a polyfill for Python typing.

Modules:

  • classes

    Vendored class decorators for dataclasses.

  • frames

    Utilities for working with stack traces and frames.

  • future

    Utilities for maintaining runtime compatibility with emerging type annotation operations.

  • inspection

    High-performance, Fine-grained runtime type inspections.

  • refs

    Utilities for working with typing.ForwardRef.