Deprecated checker is not able to detect deprecated aliases to existing functions/methods #4618
Labels
Enhancement ✨
Improvement to a component
False Negative 🦋
No message is emitted but something is wrong with the code
Steps to reproduce
Module
threading
contains several deprecated aliases (deprecated in python 3.7 and 3.10) of existing functions:Current logic of detecting deprecated methods/functions does not support aliases since it is using inferred name of function for checking against list of deprecated names. Hence, even after adding the names to list of deprecated functions, pylint produces false negative result:
Given a file
a.py
:Current behavior
Expected behavior
pylint --version output
Result of
pylint --version
output:The text was updated successfully, but these errors were encountered: