Skip to content

Commit

Permalink
Remove power hugging formatting from preview
Browse files Browse the repository at this point in the history
It is falsely placed in preview features and always formats the power operators, it was added in psf#2789 but there is no check for formatting added along with it.
  • Loading branch information
Shivansh-007 committed Mar 16, 2022
1 parent 9ce3c80 commit 0cbf30c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/black/mode.py
Expand Up @@ -127,7 +127,6 @@ class Preview(Enum):
"""Individual preview style features."""

string_processing = auto()
hug_simple_powers = auto()


class Deprecated(UserWarning):
Expand Down Expand Up @@ -163,7 +162,9 @@ def __contains__(self, feature: Preview) -> bool:
"""
if feature is Preview.string_processing:
return self.preview or self.experimental_string_processing
return self.preview
# TODO: Remove type ignore comment once preview contains more features
# than just ESP
return self.preview # type: ignore

def get_cache_key(self) -> str:
if self.target_versions:
Expand Down

0 comments on commit 0cbf30c

Please sign in to comment.