Skip to content

Conversation

@lavafroth
Copy link
Contributor

Changes

  • All ANSI colors are now enum variants
  • For formatting text, we simply call the variant and the variant will automatically use its value.

Note: backward compatibility is maintained since enum.Enum was introduced in Python 3.4.

@cddmp cddmp merged commit d4be313 into cddmp:master Sep 28, 2023
@cddmp
Copy link
Owner

cddmp commented Sep 28, 2023

That is elegant. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants