mypy
Package — Code QualityPython 3.8+Intermediate
Static type checker for Python type annotations
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.8+
- Dependencies
- mypy-extensions, typing-extensions, tomli
- Install
pip install mypy
Learn by Difficulty
Quick Example
python
# Install: pip install mypy import mypy # Basic mypy usage print(f"Using mypy") # See documentation for detailed examples
mypy is a third-party package. Static type checker for Python type annotations. Install with: pip install mypy
Try in PlaygroundTags
packagecode-qualitytype-checkerstatic-analysis
Related Items
pyright
Package — Code Quality
Fast type checker by Microsoft (VS Code Pylance)
typing
Stdlib — Typing
Type hint support: List, Dict, Optional, Union, Any, Callable, Generic, Protocol
ruff
Package — Code Quality
Extremely fast linter and formatter in Rust; replaces flake8, isort
pylint
Package — Code Quality
Comprehensive static analysis: errors, style, refactoring
pydantic
Package — Validation
Data validation using Python type annotations; settings management