There seem to have been some changes to IntEnum that do not allow us to use dir() anymore for listing the enum keys. I get the following error when trying to run the tests:
pymysql.err.DataError: (1366, "Incorrect integer value: '<method 'as_integer_ratio' of 'int' objects>' for column 'id' at row 1")
It seems as_integer_ratio incorrectly gets picked up as a key of the enum. So switch to directly iterating the enums and accessing the name attribute instead. Also add Python 3.11 to the Github Workflow.
There seem to have been some changes to
IntEnum
that do not allow us to usedir()
anymore for listing the enum keys. I get the following error when trying to run the tests:It seems
as_integer_ratio
incorrectly gets picked up as a key of the enum. So switch to directly iterating the enums and accessing thename
attribute instead. Also add Python 3.11 to the Github Workflow.