♻️ Import Literal from the typing module directly (#1699)

import Literal from typing now that Python 3.8 is dropped
This commit is contained in:
Sofie Van Landeghem
2026-01-13 12:30:07 +01:00
committed by GitHub
parent ac29fcdf9c
commit 99d8b0bba2
3 changed files with 4 additions and 4 deletions

View File

@@ -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