asottile / add-trailing-comma

A tool (and pre-commit hook) to automatically add trailing commas to calls and literals.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parens after dedent broken

asottile opened this issue · comments

caused by tokenize-rt 3.0.0, being reverted here: asottile/tokenize-rt#23

if True:
    if True:
        pass

    x = (
        1,
    )
 
     x = (
         1,
-    )
+)

write a test to prevent this regression