We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b045f4 commit d27497cCopy full SHA for d27497c
pylint/checkers/utils.py
@@ -873,7 +873,8 @@ def decorated_with(
873
decorator_node = decorator_node.func
874
try:
875
if any(
876
- i.name in qnames or i.qname() in qnames
+ hasattr(i, "name")
877
+ 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