Skip to content

Commit 720c17a

Browse files
committed
Fix typing
1 parent 1b23442 commit 720c17a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ydb_sqlalchemy/sqlalchemy/json.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from typing import Union
1+
from typing import Tuple, Union
22

33
from sqlalchemy import types as sqltypes
44

55

66
class YqlJSON(sqltypes.JSON):
77
class YqlJSONPathType(sqltypes.JSON.JSONPathType):
8-
def _format_value(self, value: tuple[Union[str, int]]) -> str:
8+
def _format_value(self, value: Tuple[Union[str, int]]) -> str:
99
path = "/"
1010
for elem in value:
1111
path += f"/{elem}"
@@ -14,7 +14,7 @@ def _format_value(self, value: tuple[Union[str, int]]) -> str:
1414
def bind_processor(self, dialect):
1515
super_proc = self.string_bind_processor(dialect)
1616

17-
def process(value: tuple[Union[str, int]]):
17+
def process(value: Tuple[Union[str, int]]):
1818
value = self._format_value(value)
1919
if super_proc:
2020
value = super_proc(value)
@@ -25,7 +25,7 @@ def process(value: tuple[Union[str, int]]):
2525
def literal_processor(self, dialect):
2626
super_proc = self.string_literal_processor(dialect)
2727

28-
def process(value: tuple[Union[str, int]]):
28+
def process(value: Tuple[Union[str, int]]):
2929
value = self._format_value(value)
3030
if super_proc:
3131
value = super_proc(value)

0 commit comments

Comments
 (0)