Simple, typed and monad-based Result type.
Rust like Option and Result types.
Opinionated `collections.abc` and `operators` alternative: Flexible single-method protocols and typed operators with predictable names.
Phantom types.
Make your functions return something meaningful, typed, and safe.
Fully typesafe, Rust-like Result and Option types.
Length-bounded types, dynamic object validation.
Collection of useful protocols and type aliases.
Full tutorial about `Final` constants and inheritance.
Adam Johnson blogs about typing practices.
Tests are not enough: Case study adding type hints to urllib3.
Dropbox has been one of the first companies to adopt Python static type checking at this scale.
Newly released feature in `PEP612` allows you do a lot of advanced typing things with functions and their signatures.
Function Annotations.
Literature Overview for Type Hints.
The Theory of Type Hints.
Type Hints.
Syntax for Variable Annotations.
Protocols: Structural subtyping (static duck typing).
Data Classes.
Core support for typing module and generic types.
Distributing and Packaging Type Information.
Postponed Evaluation of Annotations.
Type Hinting Generics In Standard Collections.
Literal Types.
TypedDict: Type Hints for Dictionaries with a Fixed Set of Keys.
Adding a final qualifier to typing.
Flexible function and variable annotations.
Complementary syntax for Union[].
Parameter Specification Variables.
Explicit Type Aliases.
Type Annotate an existing Python Django Codebase with MonkeyType.
In this guide, you will get a look into Python type checking.
A set of examples to learn optional static typing in Python.
Full tutorial about `Literal` types.
Accurately static typing decorators in Python is an icky business. The wrapper function obfuscates type information required to statically determine the types of the parameters and the return values of the wrapped function.
Full tutorial about testing mypy types.
As of May 2018.
An article based on two recent talks on adding type checks to Django.
Cheat sheet on writing type annotations by MyPy team.
Full tutorial about type-checking django.
Official Python documentation for `typing` module.
Backport for type hinting generics in standard collections and union types as `X | Y`.
Backported and experimental type hints.
Backport 3.8+ runtime typing utils(for eg: get_origin) & add issubtype & more.
Unbearably fast `O(1)` runtime type-checking in pure Python.
Data parsing using Python type hinting. Supports dataclasses.
Provides a rich set of utilities for runtime typechecking.
Decorator which checks whether the function is called with the correct type of parameters.
Parse JSON-like values whose shape is defined by typed dictionaries (TypedDicts) and other standard Python type hints.
Type-safe, strict Python. Works well with standard Python.
Another one runtime type checker.
Data parsing and automatic type-coercion using type hinting. Supports dataclasses, standard classes, function signatures, and more.
Mypy integration for Emacs.
Online playground for mypy.
Mypy integration for PyCharm.
Run type checkers (e.g. Mypy) on Jupyter Notebooks.
PyRight integration for VSCode.
Mypy integration for Vim.
Based static typing with baseline functionality.
Pyright fork with improvements to VSCode support and various other fixes.
Optional static typing (PEP 484).
Extensible static analyzer and type checker.
IDE for Professional Developers.
A fast static code analyzer & language server for Python, written in Rust.
Performant type-checker.
Fast type checker meant for large Python source bases. It can run in a “watch” mode and performs fast incremental updates when files are modified.
Tool to check and infer types - without requiring type annotations.
ASGI specification, provides asgiref.typing module with type annotations for ASGI servers.
Stubs for boto3.
Gives you code assistance for any boto3 API in any IDE.
Type stubs for Celery and its related packages django-celery-results, ampq, kombu, billiard, vine and ephem.
Stubs for Django.
Stubs for DRF.
Stubs for grpc.
Stubs for lxml.
Stubs for PyQt5.
Stubs for phonenumbers.
Stubs for Pythonista.
Stubs for SciPy.
Stubs for SQLAlchemy.
Official stubs and mypy plugin for SQLAlchemy.
Enhanced type annotations for pytorch.
Stubs for aiobotocore.
Collection of library stubs, with static types.
Makes typed arguments Optional when the default argument is `None`.
Automatically add simple return type annotations for functions (bool, None, Optional).
Tool for translation of type comments to type annotations.
Plugin for flake8 to check for presence of type annotations in function definitions.
Plugin for flake8 to validate annotations complexity.
Plugin for Flake8 that provides specializations for type hinting stub files.
Plugin to help you guard any type-annotation-only import correctly.
flake8 plugin to disallow type: ignore comments in your typed Python code.
Plugin which checks that typing imports are properly guarded.
flake8 plugin that helps identify which imports to put into type-checking blocks, and how to adjust your type annotations once imports are moved.
CLI tool to automatically infer and add type annotations into Python code.
Generate Python types based on TypedDict from a JSON Schema.
Plugin for kubernetes CRD type checking.
Plugin for loguru support.
Part of pytype toolchain, applies stub files onto source code.
Collects runtime types of function arguments and return values, and can automatically generate stub files or even add draft type annotations directly to your code based on the types collected at runtime.
Integrate mypy with existing codebase. A CLI tool that filters out existing type errors and reports only new ones.
Tool to generate mypy stubs from protobufs.
Silence mypy by adding or removing code comments.
Test mypy plugins, stubs, custom types.
Plugin for zope.interface support.
Plugins already integrated into mypy.
Compiles mypy-annotated, statically typed Python modules into CPython C extensions.
A codemod to make your implicit optional type hints PEP 484 compliant.
Plugin for NumPy support.
Insert annotations into your source code based on call arguments and return types observed at runtime.
Plugin for additional Pydantic support.
Plugin for PynamoDB support.
Pyre has a powerful feature for migrating codebases to a typed format. The infer command-line option ingests a file or directory, makes educated guesses about the types used, and applies the annotations to the files.
Pyannotate plugin for pytest.
MonkeyType plugin for pytest.
Mypy static type checker plugin for Pytest.
Pytest plugin for testing mypy types, stubs, and plugins.
Pytest plugin to test mypy static type analysis.
A work-in-progress tool to annotate the nodes of an AST with their Python types.
Infer Types by Python Tracing.
Another tool to apply stubs to code.
A tool that generates types for your function arguments and return values. RightTyper lets your code run at nearly full speed with almost no memory overhead.
Extremely fast linter which supports lint rules from many other lint tools, such as flake8.
Deep Similarity Learning-Based Type Inference.
CLI tool that enriches your Python environment with type annotations, empowering mypy.
A Python type explainer.
A deep learning algorithm for predicting types in Python. Also available as a GitHub action
The typing_inspect module defines experimental API for runtime inspection of types defined in the `typing` module.
Lib for working with typed objects and JSON.
The strictest and most opinionated Python linter ever.