{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/4"}],"enrichment":{"capability":"A flake8 plugin that detects unguarded typing imports and version-specific typing API issues across Python versions, flagging imports that need TYPE_CHECKING guards or version checks.","skillfed_tags":["type-checking","flake8-plugin","linting"],"use_cases":["Enforce TYPE_CHECKING guards in a codebase that supports multiple Python versions to avoid runtime import errors.","Catch typing API usage that's broken or unavailable in your minimum supported Python version during CI/CD.","Validate that NamedTuple definitions don't use unsupported features like methods or defaults in older Python versions.","Automatically check that Union[Match, ...] and Union[Pattern, ...] are quoted when targeting Python <3.5.2.","Integrate typing safety checks into pre-commit hooks alongside other flake8 linting rules."],"what_it_does":"This is a flake8 plugin that enforces safe typing imports by checking that typing module usage matches your minimum supported Python version. The typing module has seen significant API changes across Python versions, and this plugin catches cases where you import or use typing constructs that don't exist in all your target versions\u2014flagging them with codes like TYP001 (unguarded import), TYP002 (@overload issues), TYP003 (unquoted Union/Pattern), TYP004\u2013TYP005 (NamedTuple limitations), and TYP006 (unquoted typing attributes).\n\nYou configure it with a minimum Python version (defaulting to 3.5.0, or read from setup.cfg's python_requires), and it runs as part of your normal flake8 checks. It helps you avoid runtime errors by ensuring that imports are either guarded behind TYPE_CHECKING blocks or version checks, or that you quote type hints that aren't available in all supported versions.","worth_installing":"Yes. This is a lightweight, actively maintained plugin that solves a real problem\u2014typing module instability across Python versions\u2014with zero security issues and minimal install friction. If you support multiple Python versions and use type hints, it catches mistakes that are otherwise easy to miss and can cause runtime failures in older environments."},"id":"flake8-typing-imports","links":{"html":"https://skillfed.io/packages/flake8-typing-imports","md":"https://skillfed.io/packages/flake8-typing-imports.md","pypi":"https://pypi.org/project/flake8-typing-imports/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-10-09","license_spdx":null,"license_treatment":"permissive","name":"flake8-typing-imports","python_support":"supports_current","summary":"flake8 plugin which checks that typing imports are properly guarded"},"popularity":{"monthly_downloads":117542,"position":12159,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.17.0"}
