{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/4"}],"enrichment":{"capability":"A flake8 plugin that detects and flags deprecated type imports from the `typing` module that should be replaced with standard library equivalents under PEP 585.","skillfed_tags":["type-hints","code-quality","linting"],"use_cases":["Modernize a codebase to use PEP 585 type hints when upgrading to Python 3.9+.","Enforce team standards in CI/CD pipelines to prevent deprecated typing imports in new code.","Discover and fix deprecated type imports that IDEs' auto-import features may have suggested.","Gradually migrate a project to modern type annotations without manual code review.","Validate that a project is ready for future Python versions where old typing imports may be removed."],"what_it_does":"flake8-pep585 is a linter plugin that integrates with flake8 to catch deprecated type imports from the `typing` module. PEP 585 introduced the ability to use standard library classes directly for type annotations\u2014for example, `list[int]` instead of `typing.List[int]`, or `collections.abc.Callable` instead of `typing.Callable`. The plugin scans your code for these deprecated imports and reports them with specific error codes and suggestions for the modern equivalent.\n\nThe plugin works on Python 3.7 through 3.9 and can be configured to always enforce the rules, automatically detect them (based on the presence of `from __future__ import annotations`), or never enforce them. You can also whitelist specific symbols if you have a reason to keep using the older imports. Since it has no runtime dependencies beyond flake8 itself, installation is straightforward.","worth_installing":"Yes, if you are actively maintaining code on Python 3.9+ and want to enforce PEP 585 compliance. The plugin is straightforward to set up and has no runtime overhead. However, note that the project is abandoned (last release February 2023) and may not be updated for future flake8 or Python releases, so verify compatibility with your current toolchain before relying on it long-term."},"id":"flake8-pep585","links":{"html":"https://skillfed.io/packages/flake8-pep585","md":"https://skillfed.io/packages/flake8-pep585.md","pypi":"https://pypi.org/project/flake8-pep585/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2023-02-26","license_spdx":null,"license_treatment":"copyleft","name":"flake8-pep585","python_support":"supports_current","summary":"flake8 plugin to enforce new-style type hints (PEP 585)"},"popularity":{"monthly_downloads":98711,"position":13063,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.7"}
