Skip to content

Commit 086ae68

Browse files
authored
Remove power hugging formatting from preview (#2928)
It is falsely placed in preview features and always formats the power operators, it was added in #2789 but there is no check for formatting added along with it.
1 parent a57ab32 commit 086ae68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/black/mode.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ class Preview(Enum):
127127
"""Individual preview style features."""
128128

129129
string_processing = auto()
130-
hug_simple_powers = auto()
131130

132131

133132
class Deprecated(UserWarning):
@@ -163,7 +162,9 @@ def __contains__(self, feature: Preview) -> bool:
163162
"""
164163
if feature is Preview.string_processing:
165164
return self.preview or self.experimental_string_processing
166-
return self.preview
165+
# TODO: Remove type ignore comment once preview contains more features
166+
# than just ESP
167+
return self.preview # type: ignore
167168

168169
def get_cache_key(self) -> str:
169170
if self.target_versions:

0 commit comments

Comments
 (0)