{"id":21344,"library":"flake8-deprecated","title":"flake8-deprecated","description":"A flake8 plugin that warns about deprecated method calls in Python code. Current version: 2.3.0, compatible with Python >=3.10. Maintained but low release cadence.","status":"active","version":"2.3.0","language":"python","source_language":"en","source_url":"https://github.com/gforcada/flake8-deprecated","tags":["flake8","linting","deprecation","plugin"],"install":[{"cmd":"pip install flake8-deprecated","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Runs as a plugin; flake8 must be installed and invoked.","package":"flake8","optional":false}],"imports":[{"note":"The plugin is discovered by flake8 when installed. Incorrect to import directly.","symbol":"flake8_deprecated","correct":"flake8 registers plugins automatically; no manual import is needed."}],"quickstart":{"code":"# Sample code with deprecated calls\nimport os\nos.getcwd()  # Example\n# Run: flake8 --select=DA mycode.py","lang":"python","description":"After installing, run flake8 on your code. The plugin adds checks prefixed with 'DA' (Deprecated API)."},"warnings":[{"fix":"Upgrade Python to 3.10+ or pin to an older version (e.g., flake8-deprecated==1.4) if needed.","message":"Only Python >=3.10 is supported as of version 2.3.0. Older Python versions will fail installation.","severity":"gotcha","affected_versions":">=2.3.0"},{"fix":"Supplement with other tools like pylint or bandit for broader deprecated API detection.","message":"The plugin only reports deprecated calls that are explicitly listed; it does not detect all forms of deprecation (e.g., missing deprecation warnings in third-party libs).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Do not import the plugin manually. It is automatically registered when you run flake8.","cause":"Attempting to import flake8_deprecated directly in Python code.","error":"No module named 'flake8_deprecated'"},{"fix":"Read the warning message; it includes the specific deprecated function. Replace with the suggested alternative.","cause":"The plugin flags deprecated calls that may still be present in your codebase.","error":"flake8 reports DA1 ... (unexpected warning)"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}