[deprecated-x] Message trigger even in old interpreter compatibility code #10043
Labels
Control flow
Requires control flow understanding
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs decision 🔒
Needs a decision before implemention or rejection
Bug description
Command used
pylint a.py
Pylint output
************* Module a
W4904: Using deprecated class TraversableResources of module importlib.abc (deprecated-class)
Expected behavior
Not raise when the import isn't available in some python interpreters and sys guard are around (?)
Pylint version
pylint 3.3.1
astroid 3.3.5
Python 3.12.3 (main, Sep 11 2024, 14:17:37) [GCC 13.2.0]
The text was updated successfully, but these errors were encountered: