Mypy
0.790

First steps

  • Introduction
  • Getting started
  • Using mypy with an existing codebase

Cheat sheets

  • Type hints cheat sheet (Python 3)
  • Type hints cheat sheet (Python 2)

Type system reference

  • Built-in types
  • Type inference and type annotations
  • Kinds of types
  • Class basics
  • Protocols and structural subtyping
  • Type checking Python 2 code
  • Dynamically typed code
  • Casts and type assertions
  • Duck type compatibility
  • Stub files
  • Generics
  • More types
  • Literal types
  • Final names, methods and classes
  • Metaclasses

Configuring and running mypy

  • Running mypy and managing imports
  • The mypy command line
  • The mypy configuration file
  • Inline configuration
  • Mypy daemon (mypy server)
  • Using installed packages
  • Extending and integrating mypy
  • Automatic stub generation (stubgen)

Miscellaneous

  • Common issues and solutions
  • Supported Python features
  • Error codes
  • Error codes enabled by default
  • Error codes for optional checks
  • New features in Python 3.6
  • Additional features
  • Frequently Asked Questions
Mypy
  • »
  • Search


© Copyright 2020, Jukka Lehtosalo

Built with Sphinx using a theme provided by Read the Docs.