types-pyflakes
raw JSON → 3.4.0.20260408 verified Fri May 01 auth: no python
Typing stubs for pyflakes, providing type hints for the pyflakes library. Current version: 3.4.0.20260408. Released as part of typeshed, updated periodically to match pyflakes releases.
pip install types-pyflakes Common errors
error ModuleNotFoundError: No module named 'types-pyflakes' ↓
cause Attempting to import from types-pyflakes directly.
fix
Do not import from types-pyflakes. Install it and pyflakes, then use 'import pyflakes' as usual.
error Cannot find implementation or library stub for module 'pyflakes' ↓
cause types-pyflakes is not installed or not detected by the type checker.
fix
Install both pyflakes and types-pyflakes: pip install pyflakes types-pyflakes
Warnings
gotcha Do not import from types-pyflakes directly. The stubs are automatically used by type checkers (mypy, pyright) when both pyflakes and types-pyflakes are installed. ↓
fix Simply install types-pyflakes alongside pyflakes. Type checking works automatically.
deprecated types-pyflakes versions prior to 3.4.0.20260408 may lack full type annotations for newer pyflakes features. ↓
fix Upgrade to the latest version: pip install --upgrade types-pyflakes
Imports
- pyflakes
import pyflakes
Quickstart
pip install pyflakes types-pyflakes
# Then run a type checker like mypy
mypy --strict your_script.py