-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
51a2465
commit 98f4046
Showing
3 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import List, Union | ||
|
||
from unimport.statement import Import, ImportFrom, Name | ||
|
||
__all__ = ["NAMES", "IMPORTS", "UNUSED_IMPORTS"] | ||
|
||
|
||
NAMES: List[Name] = [ | ||
Name(lineno=3, name='sort_by', is_all=False), | ||
Name(lineno=4, name='sort_by', is_all=False), | ||
Name(lineno=5, name='sort_by', is_all=False), | ||
] | ||
IMPORTS: List[Union[Import, ImportFrom]] = [ | ||
] | ||
UNUSED_IMPORTS: List[Union[Import, ImportFrom]] = [ | ||
|
||
] |
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,5 @@ | ||
# https://github.com/hakancelikdev/unimport/issues/291 | ||
|
||
match sort_by: | ||
case 'date': sort_by = ' updated DESC,' | ||
case _: sort_by = '' |
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,5 @@ | ||
# https://github.com/hakancelikdev/unimport/issues/291 | ||
|
||
match sort_by: | ||
case 'date': sort_by = ' updated DESC,' | ||
case _: sort_by = '' |