Closed vadim-su closed 2 years ago
before:
match some_list: case [string] if isinstance(string, str): print("The first value is string")
after formatting:
some_list = ['str', 123] match some_list: case[string] if isinstance(string, str): print("The first value is string")
case [string] -> case[string]
case [string]
case[string]
I use autopep8 without config.
Command Line
$ autopep8 test_case.py
@deterok This problem has been resolved in autopep8 version 1.6.0 (and pycodestyle version 2.8.0). Could you please use version 1.6.0?
Ok thanks, I didn't check updates 😔
Python Code
before:
after formatting:
case [string]
->case[string]
Command Line and Configuration
I use autopep8 without config.
Command Line
Your Environment