From 85729a67b29dda6f0d6e40e6e847cf5f48e23f84 Mon Sep 17 00:00:00 2001 From: kasium <15907922+kasium@users.noreply.github.com> Date: Fri, 27 Oct 2023 09:31:29 +0200 Subject: [PATCH] Remove usage of sqlalchemy compat (#117) --- sqlalchemy_hana/types.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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