Mypy
0.740

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
  • Docs »
  • Index

Index

P

P

  • Python Enhancement Proposals
    • PEP 3107
    • PEP 420, [1]
    • PEP 484, [1], [2], [3], [4], [5], [6], [7]
    • PEP 484#function-method-overloading
    • PEP 484#suggested-syntax-for-python-2-7-and-straddling-code
    • PEP 484#the-type-of-class-objects, [1]
    • PEP 484#type-aliases
    • PEP 492, [1]
    • PEP 525
    • PEP 526, [1], [2], [3]
    • PEP 530
    • PEP 544, [1]
    • PEP 557
    • PEP 561, [1], [2], [3], [4], [5], [6], [7], [8], [9], [10]
    • PEP 561#stub-only-packages

© Copyright 2019, Jukka Lehtosalo

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