black/tests/data/cases/ignore_pyi.py
Jelle Zijlstra a69bda3b9b
Use inline flags for test cases (#3931)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-10-09 18:43:47 -07:00

43 lines
520 B
Python

# flags: --pyi
def f(): # type: ignore
...
class x: # some comment
...
class y:
... # comment
# whitespace doesn't matter (note the next line has a trailing space and tab)
class z:
...
def g():
# hi
...
def h():
...
# bye
# output
def f(): # type: ignore
...
class x: # some comment
...
class y: ... # comment
# whitespace doesn't matter (note the next line has a trailing space and tab)
class z: ...
def g():
# hi
...
def h():
...
# bye