Skip to content

Commit e2d74aa

Browse files
authored
Merge pull request #25 from ydb-platform/typo-mapping fix isinstance for mapping
2 parents 6267ca9 + d519dce commit e2d74aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ydb_sqlalchemy/sqlalchemy/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Work in progress, breaking changes are possible.
44
"""
55
import collections
6+
import collections.abc
67
import ydb
78
import ydb_sqlalchemy.dbapi as dbapi
89
from ydb_sqlalchemy.dbapi.constants import YDB_KEYWORDS
@@ -303,7 +304,7 @@ def get_bind_types(
303304
"""
304305
This method extracts information about bound variables from the table definition and parameters.
305306
"""
306-
if isinstance(post_compile_parameters, collections.Mapping):
307+
if isinstance(post_compile_parameters, collections.abc.Mapping):
307308
post_compile_parameters = [post_compile_parameters]
308309

309310
parameters_values = collections.defaultdict(list)

0 commit comments

Comments
 (0)