Skip to content

Commit a843137

Browse files
author
Bastiaan Marinus van de Weerd
committed
Fix typed splat function parameters in Python.
1 parent d0b5947 commit a843137

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

languages/tree-sitter-stack-graphs-python/src/stack-graphs.tsg

+1-1
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ inherit .parent_module
860860

861861
[
862862
(parameter/typed_parameter
863-
. (_) @name) @param
863+
. (identifier) @name) @param
864864
(parameter/list_splat_pattern
865865
(_) @name) @param
866866
(parameter/dictionary_splat_pattern
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from typing import Any
2+
3+
def foo(*bar: Any):
4+
# ^defined: 1
5+
pass
6+
7+
def bar(**bar: Any):
8+
# ^defined: 1
9+
pass

0 commit comments

Comments
 (0)