Skip to content

Commit 8be5e62

Browse files
Better parenthesis
1 parent 754cfcb commit 8be5e62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylint/checkers/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,8 @@ def decorated_with(
873873
decorator_node = decorator_node.func
874874
try:
875875
if any(
876-
hasattr(i, "name")
877-
and (i.name in qnames or (hasattr(i, "qname") and i.qname() in qnames))
876+
(hasattr(i, "name") and i.name in qnames)
877+
or (hasattr(i, "qname") and i.qname() in qnames)
878878
for i in decorator_node.infer()
879879
if i is not None and not isinstance(i, util.UninferableBase)
880880
):

0 commit comments

Comments
 (0)