False positive deprecated-class
when the class is imported in a guarded import block
#9533
Labels
Enhancement ✨
Improvement to a component
Help wanted 🙏
Outside help would be appreciated, good for new contributors
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Current problem
Desired solution
In #4702 pylint was extended with a concept of "guarded import blocks" and it does not trigger
import-error
and similar errosr when the import is made in a guarded import block.I believe it would be nice to have same behavior for
deprecated-class
as well.Additional context
No response
The text was updated successfully, but these errors were encountered: