From 4ce0e08b459547895c67f147a771a58af2f7db4b Mon Sep 17 00:00:00 2001 From: Oleg Ovcharuk Date: Thu, 7 May 2026 21:56:30 +0300 Subject: [PATCH] Fix: move typing_extensions import under TYPE_CHECKING to fix Poetry 2.x on Python 3.12+ --- ydb_dbapi/cursors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ydb_dbapi/cursors.py b/ydb_dbapi/cursors.py index fa04936..0c5d0a2 100644 --- a/ydb_dbapi/cursors.py +++ b/ydb_dbapi/cursors.py @@ -13,7 +13,6 @@ from typing import Union import ydb -from typing_extensions import Self from .errors import DatabaseError from .errors import InterfaceError @@ -24,6 +23,8 @@ from .utils import maybe_get_current_trace_id if TYPE_CHECKING: + from typing_extensions import Self + from .connections import AsyncConnection from .connections import Connection