X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/086ae68076de570b0cb1881a3c3b9da592b46ee0..82e150a13ac78a1f24de27977d8a40883bc3d6e7:/src/black/mode.py diff --git a/src/black/mode.py b/src/black/mode.py index 35a072c..6b74c14 100644 --- a/src/black/mode.py +++ b/src/black/mode.py @@ -127,6 +127,8 @@ class Preview(Enum): """Individual preview style features.""" string_processing = auto() + remove_redundant_parens = auto() + one_element_subscript = auto() class Deprecated(UserWarning): @@ -162,9 +164,7 @@ class Mode: """ if feature is Preview.string_processing: return self.preview or self.experimental_string_processing - # TODO: Remove type ignore comment once preview contains more features - # than just ESP - return self.preview # type: ignore + return self.preview def get_cache_key(self) -> str: if self.target_versions: