Debian Codegraph @

tests/test_validate_command.py

raw symbols SCIP
1 from typing import Union
2
3 from cyclopts.parameter import validate_command
4
5
6 def test_validate_command():
7 def f1():
8 pass
9
10 validate_command(f1)
11
12 def f2(a, b, c):
13 pass
14
15 validate_command(f2)
16
17 def f3(a: str, b: int, c: list):
18 pass
19
20 validate_command(f3)
21
22 def f4(a: tuple[int, int], b: str):
23 pass
24
25 validate_command(f4)
26
27 # Python automatically deduplicates the double None.
28 def f5(a: Union[None, None]): # noqa: UP007
29 pass
30
31 validate_command(f5)