We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a9d570 + b56d9fa commit e4b4119Copy full SHA for e4b4119
python/asthelper.py
@@ -1,4 +1,5 @@
1
import ast
2
+from itertools import chain
3
4
5
class RaiseNameCollector(ast.NodeVisitor):
@@ -83,7 +84,7 @@ def _handle_functions(self, node):
83
84
self.raises |= new_visitor.raises
85
86
if self.parent:
- for arg in node.args.args:
87
+ for arg in chain(node.args.args, node.args.kwonlyargs):
88
type_hint = None
89
if arg.annotation is not None:
90
type_hint = ast.unparse(arg.annotation)
0 commit comments