We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab611e2 commit 8dde00cCopy full SHA for 8dde00c
lib/dl_sqlalchemy_ydb/dl_sqlalchemy_ydb/dialect.py
@@ -33,7 +33,7 @@ class YqlInterval(sa.types.Interval):
33
__visit_name__ = "interval"
34
35
def result_processor(self, dialect: sa.engine.Dialect, coltype: typing.Any) -> typing.Any:
36
- def process(value: typing.Optional[datetime.timedelta]) -> typing.Optional[int]:
+ def process(value: typing.Optional[datetime.timedelta] | int) -> typing.Optional[int]:
37
if value is None:
38
return None
39
if isinstance(value, datetime.timedelta):
0 commit comments