Skip to content

Commit d122606

Browse files
jrobertson98atxPCManticore
authored andcommitted
Fix missing-raises-doc false positive (W9006)
Updated checking of missing Raises to check exceptions that have absolute paths. Close #1502
1 parent 6b3f8c0 commit d122606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint/extensions/_check_docs_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def returns_something(return_node):
102102
def _get_raise_target(node):
103103
if isinstance(node.exc, astroid.Call):
104104
func = node.exc.func
105-
if isinstance(func, (astroid.Name, astroid.Attribute)):
105+
if isinstance(func, astroid.Name) or isinstance(func, astroid.Attribute):
106106
return utils.safe_infer(func)
107107
return None
108108

0 commit comments

Comments
 (0)