-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
13 additions
and
45 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .base import BaseSort | ||
from .misc import SortByOrder | ||
from ._base import BaseSort | ||
from ._types import SortByOrder |
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,10 @@ | ||
from typing import Optional | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
from ._types import SortByOrder | ||
|
||
|
||
class BaseSort(BaseModel): | ||
sort_by: Optional[str] = None | ||
sort_by_order: SortByOrder = Field(SortByOrder.asc) |
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
pydantic_filters/sort/misc.py → pydantic_filters/sort/_types.py
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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
from enum import Enum | ||
|
||
__all__ = ( | ||
"SortByOrder", | ||
) | ||
|
||
|
||
class SortByOrder(str, Enum): | ||
asc = "asc" | ||
|
This file was deleted.
Oops, something went wrong.