{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/4"}],"enrichment":{"capability":"A flake8 plugin that identifies which imports should be moved into or out of TYPE_CHECKING blocks to reduce runtime overhead, circular dependencies, and improve code organization.","skillfed_tags":["flake8-plugin","type-checking","import-optimization"],"use_cases":["Reduce import overhead in libraries that use heavy dependencies only for type hints (e.g., pandas, numpy).","Eliminate circular import errors by moving type-only imports into TYPE_CHECKING blocks.","Enforce consistent forward-reference style across a codebase (either future annotations or string literals).","Validate that Pydantic or FastAPI models don't incorrectly guard runtime-needed imports.","Organize and lint type-checking imports as part of your standard flake8 checks."],"what_it_does":"This flake8 plugin analyzes your code to detect imports used only for type hints and suggests moving them into TYPE_CHECKING blocks. By guarding type-only imports behind TYPE_CHECKING, you eliminate their runtime overhead (important for large libraries like pandas), reduce circular import issues, and organize imports more cleanly. The plugin works by classifying imports as application, third-party, or built-in, then checking whether they're actually used at runtime or only in annotations.\n\nIt offers two strategies for handling forward references: TC100-range codes use postponed evaluation (from __future__ import annotations), while TC200-range codes use string literals. You configure which strategy suits your codebase and Python version target. The plugin includes special handling for frameworks like Pydantic and FastAPI, where class annotations are evaluated at runtime, and can be tuned with strict mode, exemptions, and custom typing module paths.","worth_installing":"Yes. This is a focused, low-friction plugin that solves a real problem\u2014unnecessary runtime import overhead and circular dependencies\u2014with active maintenance, no security issues, and permissive licensing. Install it if you want automated guidance on moving type-only imports into TYPE_CHECKING blocks."},"id":"flake8-type-checking","links":{"html":"https://skillfed.io/packages/flake8-type-checking","md":"https://skillfed.io/packages/flake8-type-checking.md","pypi":"https://pypi.org/project/flake8-type-checking/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-18","license_spdx":null,"license_treatment":"permissive","name":"flake8-type-checking","python_support":"supports_current","summary":"A flake8 plugin for managing type-checking imports & forward references"},"popularity":{"monthly_downloads":109061,"position":12529,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.2.0"}
