Skip to content

Instantly share code, notes, and snippets.

@THEGOLDENPRO
Created March 17, 2023 15:59
Show Gist options
  • Save THEGOLDENPRO/317a1238c581557712d234ff10e41a61 to your computer and use it in GitHub Desktop.
Save THEGOLDENPRO/317a1238c581557712d234ff10e41a61 to your computer and use it in GitHub Desktop.

🌟 You can now use Colours like this in devgoldyutils:

print(Colours.RED + "ERROR: YOU CAN'T DO THIS!!!!" + Colours.RESET_COLOUR)

The string representation now automatically returns the colour value.

before v2.3.5 you had to use .value:

print(Colours.RED.value + "ERROR: YOU CAN'T DO THIS!!!!" + Colours.RESET_COLOUR.value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment