File tree 2 files changed +18
-21
lines changed
2 files changed +18
-21
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ def func(b=True, c=True):
32
32
def my_funk (value : str ) -> str :
33
33
print (value )
34
34
35
+ def my_funk (value : str = "hello" , other : bool = False ) -> str :
36
+ print (value )
37
+
35
38
# we can say "change every value" to allow modifying all the values in one go
36
39
def foo ():
37
40
a = 0
Original file line number Diff line number Diff line change 69
69
; ; xxxxxx
70
70
; ; ---------
71
71
; ;
72
- ; ; def func(b=True):
73
- ; ; ^^^^
74
- ; ; xxxxx
75
- ; ; ------
76
- ; ;
77
- ; ; NOTE: we ignore d["a"] of type
78
- ; ; (subscript
79
- ; ; value: ...
80
- ; ; )
81
- (
72
+ ; ; {value: key for (key, value) in d1.items()}
73
+ ; ; ^^^
74
+ ; ; xxxxx
75
+ ; ; ----------
76
+ (pair
77
+ " :" @_.leading
78
+ value: (_) @value
79
+ ) @_.domain
80
+
81
+ ; ; def func(value: str=""):
82
+ ; ; ^^
83
+ ; ; xxx
84
+ ; ; -------------
85
+ (parameters
82
86
(_
83
- [
84
- " :"
85
- " ="
86
- ] @_.leading
87
+ " =" @_.leading
87
88
value: (_) @value
88
89
) @_.domain
89
- (#not-type? @_.domain subscript)
90
90
)
91
91
92
92
; ; def func():
136
136
(module) @namedFunction.iteration @functionName.iteration
137
137
(class_definition) @namedFunction.iteration @functionName.iteration
138
138
139
- ; ; _ = {value: key for (key, value) in d1.items()}
140
- ; ; **********
141
- ; ;(_
142
- ; ; body: (_) @statement.iteration @value.iteration
143
- ; ;)
144
-
145
139
; ; def foo():
146
140
; ; a = 0
147
141
; ; *****
You can’t perform that action at this time.
0 commit comments