-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b6fd0c
commit aaae7db
Showing
3 changed files
with
90 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from common import ( | ||
a, b , c # these should stick around | ||
) | ||
|
||
# these imports should be removed | ||
from async_only import ( # unasync: remove | ||
async_a, async_b, | ||
async_c | ||
) | ||
|
||
CONST = 'foo' | ||
ASYNC_CONST = 'bar' # unasync: remove | ||
|
||
async def foo(): | ||
print('this function should stick around') | ||
|
||
async def async_only(): # unasync: remove | ||
print('this function will be removed entirely') | ||
|
||
|
||
class AsyncOnly: # unasync: remove | ||
async def foo(self): | ||
print('the entire class should be removed') | ||
|
||
|
||
class Foo: | ||
async def foobar(self): | ||
print('This method should stick around') | ||
|
||
async def async_only_method(self): # unasync: remove | ||
print('only this method should be removed') | ||
|
||
async def another_method(self): | ||
print('This line should stick around') | ||
await self.something("the content in this line should be removed") # unasync: remove | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from common import ( | ||
a, b , c # these should stick around | ||
) | ||
|
||
# these imports should be removed | ||
|
||
CONST = 'foo' | ||
|
||
def foo(): | ||
print('this function should stick around') | ||
|
||
|
||
|
||
|
||
|
||
class Foo: | ||
def foobar(self): | ||
print('This method should stick around') | ||
|
||
|
||
def another_method(self): | ||
print('This line should stick around') | ||
|