tonybaloney / perflint

Python Linter for performance anti patterns
MIT License
659 stars 10 forks source link

Fix deprecation warning #51

Open naglis opened 7 months ago

naglis commented 7 months ago

safe_infer was moved to astroid.util in 3.0.0 and importing it from helpers issues a deprecation warning:

/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/perflint/comprehension_checker.py:78: DeprecationWarning: Import safe_infer from astroid.util; this shim in astroid.helpers will be removed.