Try compatibility with Python 3.7
This commit is contained in:
parent
10b41aadac
commit
85d079fab8
10 changed files with 20 additions and 23 deletions
|
|
@ -1,4 +1,6 @@
|
|||
from typing import List, Literal
|
||||
from typing import List
|
||||
|
||||
from typing_extensions import Literal # <= Python 3.7
|
||||
|
||||
Operator = Literal[">=", "<=", "<", ">", "!=", "=", "contains"]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
from typing import Any, List, Literal, Optional
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from typing_extensions import Literal # <= Python 3.7
|
||||
|
||||
from ..hashable_base_model import HashableBaseModel
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
from typing import Literal
|
||||
|
||||
from pydantic import BaseModel
|
||||
from typing_extensions import Literal # <= Python 3.7
|
||||
|
||||
|
||||
class SortBy(BaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue