Debian Codegraph @

tests/data/cases/ignore_pyi.py

raw
1 # flags: --pyi
2 def f(): # type: ignore
3 ...
4
5 class x: # some comment
6 ...
7
8 class y:
9 ... # comment
10
11 # whitespace doesn't matter (note the next line has a trailing space and tab)
12 class z:
13 ...
14
15 def g():
16 # hi
17 ...
18
19 def h():
20 ...
21 # bye
22
23 # output
24
25 def f(): # type: ignore
26 ...
27
28 class x: # some comment
29 ...
30
31 class y: ... # comment
32
33 # whitespace doesn't matter (note the next line has a trailing space and tab)
34 class z: ...
35
36 def g():
37 # hi
38 ...
39
40 def h():
41 ...
42 # bye