-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add dim text modification #1
base: master
Are you sure you want to change the base?
Conversation
terminology/ansi.py
Outdated
@@ -183,9 +191,9 @@ def _remove_background_colors(text) -> StyledText: | |||
return _remove_regex(BACKGROUND_COLORS_REGEX, text) | |||
|
|||
|
|||
def _remove_bold(text) -> StyledText: | |||
def _remove_bold_or_dim(text) -> StyledText: | |||
"""Remove all text modifications from the given text.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated to your change, but this docstring is 100% incorrect. Are you willing to update it to
"""Remove all text modifications from the given text.""" | |
"""Remove bold and dim modifications from the text.""" |
def dimmed(self) -> "StyledText": | ||
return dimmed(self) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, it may seem trivial, but I try to keep my methods and functions alphabetized when there is a lot of them like there are here. There are ways to enforce that, but I haven't set that up. Would you be up for moving dimmed
to the top
No description provided.