Skip to content

Commit

Permalink
switch isinstance to collections.abc.Mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby committed Jan 24, 2024
1 parent e4bb8f1 commit d519dce
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, 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 d519dce

Please sign in to comment.