asottile/add-trailing-comma

`AssertionError: Past end?` on match statement class with no args

zyv opened this issue · 1 comments

zyv commented

Interpreter: Python 3.10

Minimum breaking example:

match 1:
    case str():  # `str()` seems to be important here!
        pass
    case _:
        pass

Probably related to #177 .

zyv commented

Thank you very much @asottile, this was very quick and it's working for me now!