|
1 |
| -from common import a, b, c # these should stick around |
| 1 | +# fmt: off |
| 2 | +from common import ( |
| 3 | +a, b , c # these should stick around |
| 4 | +) |
2 | 5 |
|
3 | 6 | # these imports should be removed
|
4 |
| -from async_only import async_a, async_b, async_c # unasync: remove |
5 |
| - |
6 |
| -CONST = "foo" |
7 |
| -ASYNC_CONST = "bar" # unasync: remove |
| 7 | +from async_only import ( # unasync: remove |
| 8 | + async_a, async_b, |
| 9 | + async_c |
| 10 | +) |
8 | 11 |
|
| 12 | +CONST = 'foo' |
| 13 | +ASYNC_CONST = 'bar' # unasync: remove |
9 | 14 |
|
10 | 15 | async def foo():
|
11 |
| - print("this function should stick around") |
12 |
| - |
| 16 | + print('this function should stick around') |
13 | 17 |
|
14 |
| -async def async_only(): # unasync: remove |
15 |
| - print("this function will be removed entirely") |
| 18 | +async def async_only(): # unasync: remove |
| 19 | + print('this function will be removed entirely') |
16 | 20 |
|
17 | 21 |
|
18 |
| -class AsyncOnly: # unasync: remove |
| 22 | +class AsyncOnly: # unasync: remove |
19 | 23 | async def foo(self):
|
20 |
| - print("the entire class should be removed") |
| 24 | + print('the entire class should be removed') |
21 | 25 |
|
22 | 26 |
|
23 | 27 | class Foo:
|
24 | 28 | async def foobar(self):
|
25 |
| - print("This method should stick around") |
| 29 | + print('This method should stick around') |
26 | 30 |
|
27 |
| - async def async_only_method(self): # unasync: remove |
28 |
| - print("only this method should be removed") |
| 31 | + async def async_only_method(self): # unasync: remove |
| 32 | + print('only this method should be removed') |
29 | 33 |
|
30 | 34 | async def another_method(self):
|
31 |
| - print("This line should stick around") |
32 |
| - await self.something( # unasync: remove |
33 |
| - "the content in this line should be removed" |
34 |
| - ) |
| 35 | + print('This line should stick around') |
| 36 | + await self.something("the content in this line should be removed") # unasync: remove |
| 37 | + |
0 commit comments