Skip to main content

Collection of awesome Python types, stubs, plugins, and tools to work with them.

2k
GitHub Stars
136
Curated Resources
9
Categories
5 hours ago
Last Refreshed
Static type checkersDynamic type checkersStub packagesAdditional typesBackports and improvementsToolsIntegrationsArticlesRelated

Use this list with your AI agent

Add the Context Awesome MCP server to Claude, Cursor, or any MCP client, then ask:

"Show me third-party articles resources from awesome-python-typing"

Installation instructions →

What's inside

Articles

Stub packages

Tools

  • auto-optionalHelper tools to add annotations to existing code

    Makes typed arguments Optional when the default argument is

  • autotypingHelper tools to add annotations to existing code

    Automatically add simple return type annotations for functions (bool, None, Optional).

  • com2annWorking with types

    Tool for translation of type comments to type annotations.

  • flake8-annotationsLinters

    Plugin for flake8 to check for presence of type annotations in function definitions.

  • flake8-annotations-complexityLinters

    Plugin for flake8 to validate annotations complexity.

  • flake8-pyiLinters

    Plugin for Flake8 that provides specializations for type hinting stub files.

Related

Static type checkers

  • basedmypy

    Based static typing with baseline functionality.

  • basedpyright

    Pyright fork with improvements to VSCode support and various other fixes.

  • mypy

    Optional static typing (PEP 484).

  • pyanalyze

    Extensible static analyzer and type checker.

  • PyCharm

    IDE for Professional Developers.

  • pycroscope

    A semi-static type checker for Python code. It imports the modules it type checks, enabling

Dynamic type checkers

  • beartype

    Unbearably fast

  • pydantic

    Data parsing using Python type hinting. Supports dataclasses.

  • pytypes

    Provides a rich set of utilities for runtime typechecking.

  • strongtyping

    Decorator which checks whether the function is called with the correct type of parameters.

  • trycast

    Parse JSON-like values whose shape is defined by typed dictionaries (TypedDicts) and other standard Python type hints.

  • typedpy

    Type-safe, strict Python. Works well with standard Python.

Integrations

Backports and improvements

  • future-typing

    Backport for type hinting generics in standard collections and union types as

  • typing-extensions

    Backported and experimental type hints.

  • typing-utils

    Backport 3.8+ runtime typing utils(for eg: get_origin) & add issubtype & more.

Showing a sample of 136 resources. View the full list on GitHub →