Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
basedmypy 2.10.0 documentation
Light Logo Dark Logo
basedmypy 2.10.0 documentation

First steps

  • Getting started
  • Type hints cheat sheet
  • Using mypy with an existing codebase

Basedmypy

  • Baseline
  • Based Features
  • Based Inference

Type system reference

  • Built-in types
  • Type inference and type annotations
  • Kinds of types
  • Class basics
  • Annotation issues at runtime
  • Protocols and structural subtyping
  • Dynamically typed code
  • Type narrowing
  • Duck type compatibility
  • Stub files
  • Generics
  • More types
  • Literal types and Enums
  • TypedDict
  • 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)
  • Automatic stub testing (stubtest)

Miscellaneous

  • Common issues and solutions
  • Supported Python features
  • Error codes
  • Error codes part 1
  • Error codes for strict checks
  • Error codes unique to basedmypy
  • Additional features
  • Frequently Asked Questions
  • Basedmypy Changelog

Project Links

  • GitHub
  • Discord
Back to top
Made with Sphinx and @pradyunsg's Furo