diff --git a/rich/color.py b/rich/color.py index 6bca2da9..9031ae37 100644 --- a/rich/color.py +++ b/rich/color.py @@ -29,6 +29,9 @@ class ColorSystem(IntEnum): def __repr__(self) -> str: return f"ColorSystem.{self.name}" + def __str__(self) -> str: + return repr(self) + class ColorType(IntEnum): """Type of color stored in Color class."""