Skip to content

Fix python 3.8 typing #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions ydb_dbapi/cursors.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from collections.abc import Generator
from collections.abc import Iterator
from collections.abc import Sequence
from typing import TYPE_CHECKING
from typing import Any
from typing import Union

Expand All @@ -18,14 +19,15 @@
from .utils import handle_ydb_errors
from .utils import maybe_get_current_trace_id

ParametersType = dict[
str,
Union[
Any,
tuple[Any, Union[ydb.PrimitiveType, ydb.AbstractTypeBuilder]],
ydb.TypedValue,
],
]
if TYPE_CHECKING:
ParametersType = dict[
str,
Union[
Any,
tuple[Any, Union[ydb.PrimitiveType, ydb.AbstractTypeBuilder]],
ydb.TypedValue,
],
]


def _get_column_type(type_obj: Any) -> str:
Expand Down
Loading