Debian Codegraph @

test/completion/positional_only_params.py

raw symbols SCIP
1 def positional_only_call(a, /, b):
2 #? str()
3 a
4 #? int()
5 b
6 if UNDEFINED:
7 return a
8 else:
9 return b
10
11
12 #? int() str()
13 positional_only_call('', 1)
14
15
16 def positional_only_call2(a, /, b=3):
17 if UNDEFINED:
18 return a
19 else:
20 return b
21
22 #? int()
23 positional_only_call2(1)
24 #? int()
25 positional_only_call2(SOMETHING_UNDEFINED)
26 #? str()
27 positional_only_call2(SOMETHING_UNDEFINED, '')
28
29 # Maybe change this? Because it's actually not correct
30 #? int() str()
31 positional_only_call2(a=1, b='')
32 #? tuple str()
33 positional_only_call2(b='', a=tuple)