Skip to content

Commit

Permalink
Remove usage of sqlalchemy compat (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasium authored Oct 27, 2023
1 parent 5792172 commit 85729a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sqlalchemy_hana/types.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

from sqlalchemy import types as sqltypes
from sqlalchemy.util import compat


class TINYINT(sqltypes.TypeEngine):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 85729a6

Please sign in to comment.