Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

fix: fix 3.11 enum str behaviour #726

Merged
merged 1 commit into from
Nov 19, 2022
Merged

fix: fix 3.11 enum str behaviour #726

merged 1 commit into from
Nov 19, 2022

Conversation

LordOfPolls
Copy link
Member

What type of pull request is this?

  • Non-breaking code change
  • Breaking code change
  • Documentation change/addition
  • Tests change

Description

Python 3.11 apparently made a breaking change to __str__ behaviour for enums. This fixes that without breaking 3.10

Changes

  • Define our own __str__ method for TimestampStyles

Checklist

  • I've formatted my code with Black
  • I've ensured my code works on Python 3.10.x
  • I've ensured my code works on Python 3.11.x
  • I've tested my code

@LordOfPolls LordOfPolls added the Bug::Library A bug in the library label Nov 14, 2022
@LordOfPolls LordOfPolls merged commit 6278997 into dev Nov 19, 2022
@LordOfPolls LordOfPolls deleted the enum_fix branch November 19, 2022 13:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug::Library A bug in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant