diff --git a/sqlalchemy_hana/types.py b/sqlalchemy_hana/types.py index 4868b83..21fb853 100644 --- a/sqlalchemy_hana/types.py +++ b/sqlalchemy_hana/types.py @@ -1,7 +1,6 @@ from __future__ import annotations from sqlalchemy import types as sqltypes -from sqlalchemy.util import compat class TINYINT(sqltypes.TypeEngine): @@ -56,7 +55,7 @@ def result_processor(self, dialect, coltype): def process(value): if value is None: return None - if isinstance(value, compat.string_types): + if isinstance(value, str): return value if isinstance(value, memoryview): return value.obj