Skip to content

Commit

Permalink
Merge pull request #25 from ydb-platform/typo-mapping fix isinstance …
Browse files Browse the repository at this point in the history
…for mapping
  • Loading branch information
rekby authored Jan 24, 2024
2 parents 6267ca9 + d519dce commit e2d74aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ydb_sqlalchemy/sqlalchemy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Work in progress, breaking changes are possible.
"""
import collections
import collections.abc
import ydb
import ydb_sqlalchemy.dbapi as dbapi
from ydb_sqlalchemy.dbapi.constants import YDB_KEYWORDS
Expand Down Expand Up @@ -303,7 +304,7 @@ def get_bind_types(
"""
This method extracts information about bound variables from the table definition and parameters.
"""
if isinstance(post_compile_parameters, collections.Mapping):
if isinstance(post_compile_parameters, collections.abc.Mapping):
post_compile_parameters = [post_compile_parameters]

parameters_values = collections.defaultdict(list)
Expand Down

0 comments on commit e2d74aa

Please sign in to comment.