{"id":24772,"library":"types-pyflakes","title":"types-pyflakes","description":"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.","status":"active","version":"3.4.0.20260408","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["typeshed","stubs","pyflakes","type-hints"],"install":[{"cmd":"pip install types-pyflakes","lang":"bash","label":"Latest version"}],"dependencies":[{"reason":"This package only provides stubs; you need the actual pyflakes library at runtime.","package":"pyflakes","optional":true}],"imports":[{"note":"Stubs are automatically picked up by type checkers. Do not import from types-pyflakes directly.","wrong":"","symbol":"pyflakes","correct":"import pyflakes"}],"quickstart":{"code":"pip install pyflakes types-pyflakes\n# Then run a type checker like mypy\nmypy --strict your_script.py","lang":"bash","description":"Install both pyflakes and its type stubs, then run mypy to type-check your code that uses pyflakes."},"warnings":[{"fix":"Simply install types-pyflakes alongside pyflakes. Type checking works automatically.","message":"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.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to the latest version: pip install --upgrade types-pyflakes","message":"types-pyflakes versions prior to 3.4.0.20260408 may lack full type annotations for newer pyflakes features.","severity":"deprecated","affected_versions":"<3.4.0.20260408"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Do not import from types-pyflakes. Install it and pyflakes, then use 'import pyflakes' as usual.","cause":"Attempting to import from types-pyflakes directly.","error":"ModuleNotFoundError: No module named 'types-pyflakes'"},{"fix":"Install both pyflakes and types-pyflakes: pip install pyflakes types-pyflakes","cause":"types-pyflakes is not installed or not detected by the type checker.","error":"Cannot find implementation or library stub for module 'pyflakes'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}