From: Shivansh-007 Date: Wed, 16 Mar 2022 03:13:56 +0000 (+0530) Subject: Remove power hugging formatting from preview (#2928) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/086ae68076de570b0cb1881a3c3b9da592b46ee0?ds=inline 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. --- diff --git a/src/black/mode.py b/src/black/mode.py index 455ed36..35a072c 100644 --- a/src/black/mode.py +++ b/src/black/mode.py @@ -127,7 +127,6 @@ class Preview(Enum): """Individual preview style features.""" string_processing = auto() - hug_simple_powers = auto() class Deprecated(UserWarning): @@ -163,7 +162,9 @@ class Mode: """ 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: