You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to insert data into a column results in an error like this:
StatementError: (builtins.TypeError) memoryview: a bytes-like object is required, not 'str'
Simply returning self.engine.encrypt(value) without the .decode() to convert to a string works, but then mypy complains that Return type "Optional[bytes]" of "process_bind_param" incompatible with return type "Optional[str]" in supertype "TypeDecorator"
The text was updated successfully, but these errors were encountered:
I think this is a duplicate of #205/#206: it's just a mistake in the type annotations, so giving the functions the correct return type (and using # type: ignore on those lines) is what we're doing, and it works.
Probably doing something wrong here, but I can't figure out how to make this work:
Trying to insert data into a column results in an error like this:
StatementError: (builtins.TypeError) memoryview: a bytes-like object is required, not 'str'
Simply returning
self.engine.encrypt(value)
without the.decode()
to convert to a string works, but then mypy complains thatReturn type "Optional[bytes]" of "process_bind_param" incompatible with return type "Optional[str]" in supertype "TypeDecorator"
The text was updated successfully, but these errors were encountered: