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
{{ message }}
Repository navigation
Commit 8c8f499
Browse filesBrowse the repository at this point in the historyBrowse files
Restore isinstance checks for string and byte literals (#814)
mysqlclient 2.3.1 changed `Connection.literal()` to dispatch on exact
built-in types. As reported in
#813 (comment),
this makes a `class Foo(str, enum.Enum)` member serialize as `'Foo.BAR'`
instead of its string value `'BAR'`.
Restore `isinstance()` checks only for `str`, `bytes`, and `bytearray`,
so their subclasses receive the corresponding string/byte handling.
0 commit comments