We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 754cfcb commit 8be5e62Copy full SHA for 8be5e62
pylint/checkers/utils.py
@@ -873,8 +873,8 @@ def decorated_with(
873
decorator_node = decorator_node.func
874
try:
875
if any(
876
- hasattr(i, "name")
877
- and (i.name in qnames or (hasattr(i, "qname") and i.qname() in qnames))
+ (hasattr(i, "name") and i.name in qnames)
+ or (hasattr(i, "qname") and i.qname() in qnames)
878
for i in decorator_node.infer()
879
if i is not None and not isinstance(i, util.UninferableBase)
880
):
0 commit comments