| 1 |
with open("file.txt") as f: content = f.read() # fmt: skip |
| 2 |
|
| 3 |
# Ideally, only the last line would be ignored |
| 4 |
# But ignoring only part of the asexpr_test causes a parse error |
| 5 |
# Same with ignoring the asexpr_test without also ignoring the entire with_stmt |
| 6 |
with open ( |
| 7 |
"file.txt" , |
| 8 |
) as f: content = f.read() # fmt: skip |
| 9 |
|
| 10 |
# output |
| 11 |
|
| 12 |
with open("file.txt") as f: content = f.read() # fmt: skip |
| 13 |
|
| 14 |
# Ideally, only the last line would be ignored |
| 15 |
# But ignoring only part of the asexpr_test causes a parse error |
| 16 |
# Same with ignoring the asexpr_test without also ignoring the entire with_stmt |
| 17 |
with open ( |
| 18 |
"file.txt" , |
| 19 |
) as f: content = f.read() # fmt: skip |