Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

joankovacs
Copy link

No description provided.

@@ -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."""
Copy link
Owner

@juanrgon juanrgon Feb 23, 2021

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

Suggested change
"""Remove all text modifications from the given text."""
"""Remove bold and dim modifications from the text."""

Comment on lines +158 to +160
def dimmed(self) -> "StyledText":
return dimmed(self)

Copy link
Owner

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

terminology/ansi.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants