mirror of
https://github.com/fastapi/sqlmodel.git
synced 2026-03-13 09:29:54 +08:00
♻️ Import Literal from the typing module directly (#1699)
import Literal from typing now that Python 3.8 is dropped
This commit is contained in:
committed by
GitHub
parent
ac29fcdf9c
commit
99d8b0bba2
@@ -1,6 +1,7 @@
|
||||
from collections.abc import Iterable, Mapping, Sequence
|
||||
from typing import (
|
||||
Any,
|
||||
Literal,
|
||||
Optional,
|
||||
TypeVar,
|
||||
Union,
|
||||
@@ -34,7 +35,6 @@ from sqlalchemy.sql.elements import (
|
||||
UnaryExpression,
|
||||
)
|
||||
from sqlalchemy.sql.type_api import TypeEngine
|
||||
from typing_extensions import Literal
|
||||
|
||||
from ._expression_select_cls import Select as Select
|
||||
from ._expression_select_cls import SelectOfScalar as SelectOfScalar
|
||||
|
||||
Reference in New Issue
Block a user