PyCQA / baron

IDE allow you to refactor code, Baron allows you to write refactoring code.
http://baron.pycqa.org
GNU Lesser General Public License v3.0
289 stars 50 forks source link

No Py 3.10 `match/case` support #180

Open s0undt3ch opened 19 hours ago

s0undt3ch commented 19 hours ago
>>> CODE = '''
... foo = "bar"
... match foo:
...     case "bar":
...         print(f"Case {foo}")
...     case "blah":
...         print(f"Case {foo}")
...     case _:
...         print("No match")
... '''
>>> RedBaron(CODE)

 ... traceback ...
baron.parser.ParsingError: The only possible keyword before an atomtrailers is 'await', not 'match'