Skip to content

Commit 07d950a

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

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Diff for: 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,10 @@
1+
from typing import Any
2+
3+
def foo(*bar: Any):
4+
# ^defined: 1
5+
pass
6+
7+
def duux(**quux: Any):
8+
# ^defined: 1
9+
pass
10+

0 commit comments

Comments
 (0)