Describe the style change
Examples in the current Black style
match status:
case ThisIsAnExampleStringEnum.this_is_example_status_one | ThisIsAnExampleStringEnum.this_is_example_status_two | ThisIsAnExampleStringEnum.this_is_example_status_three:
print("ok")
case _:
print("not ok")
Desired style
match status:
case (
ThisIsAnExampleStringEnum.this_is_example_status_one
| ThisIsAnExampleStringEnum.this_is_example_status_two
| ThisIsAnExampleStringEnum.this_is_example_status_three
):
print("ok")
case _:
print("not ok")
Additional context
The complete code example:
from enum import Enum
class ThisIsAnExampleStringEnum(Enum):
this_is_example_status_one = "one"
this_is_example_status_two = "two"
this_is_example_status_three = "three"
status = ThisIsAnExampleStringEnum.this_is_example_status_two
match status:
case ThisIsAnExampleStringEnum.this_is_example_status_one | ThisIsAnExampleStringEnum.this_is_example_status_two | ThisIsAnExampleStringEnum.this_is_example_status_three:
print("ok")
case _:
print("not ok")