Created
October 4, 2022 02:06
-
-
Save dogweather/ecb08c31ad5e76c2caa9f70683d896d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from enum import Enum | |
class Color(Enum): | |
RED = "RED" | |
GREEN = "GREEN" | |
BLUE = "BLUE" # I just added this | |
def handle_color(color: Color): | |
match (color): | |
case Color.RED: | |
... | |
case Color.GREEN: | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment