We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8633ef commit 4307a20Copy full SHA for 4307a20
cmd2/ansi.py
@@ -62,7 +62,7 @@ def colors() -> List[str]:
62
@staticmethod
63
def get_value(name: str) -> str:
64
"""Retrieve color code by name string."""
65
- return fg.__members__[name].value
+ return fg[name].value
66
67
68
# Background colors
@@ -100,7 +100,7 @@ def colors() -> List[str]:
100
101
102
103
- return bg.__members__[name].value
+ return bg[name].value
104
105
106
FG_RESET = fg.reset.value
0 commit comments