| 1 |
from .config import ( ConfigTypeAttributes, Int, Path, # String, |
| 2 |
# DEFAULT_TYPE_ATTRIBUTES, |
| 3 |
) |
| 4 |
|
| 5 |
result = 1 # A simple comment |
| 6 |
result = ( 1, ) # Another one |
| 7 |
|
| 8 |
result = 1 # type: ignore |
| 9 |
result = 1# This comment is talking about type: ignore |
| 10 |
square = Square(4) # type: Optional[Square] |
| 11 |
|
| 12 |
def function(a:int=42): |
| 13 |
""" This docstring is already formatted |
| 14 |
a |
| 15 |
b |
| 16 |
""" |
| 17 |
# There's a NBSP + 3 spaces before |
| 18 |
# And 4 spaces on the next line |
| 19 |
pass |
| 20 |
|
| 21 |
# output |
| 22 |
from .config import ( |
| 23 |
ConfigTypeAttributes, |
| 24 |
Int, |
| 25 |
Path, # String, |
| 26 |
# DEFAULT_TYPE_ATTRIBUTES, |
| 27 |
) |
| 28 |
|
| 29 |
result = 1 # A simple comment |
| 30 |
result = (1,) # Another one |
| 31 |
|
| 32 |
result = 1 # type: ignore |
| 33 |
result = 1 # This comment is talking about type: ignore |
| 34 |
square = Square(4) # type: Optional[Square] |
| 35 |
|
| 36 |
|
| 37 |
def function(a: int = 42): |
| 38 |
"""This docstring is already formatted |
| 39 |
a |
| 40 |
b |
| 41 |
""" |
| 42 |
# There's a NBSP + 3 spaces before |
| 43 |
# And 4 spaces on the next line |
| 44 |
pass |