Fixit icon indicating copy to clipboard operation
Fixit copied to clipboard

fixit upgrade makes incomplete fix, second run results in metadata error

Open amyreese opened this issue 2 years ago • 1 comments

from fixit import CstLintRule

class FooRule(CstLintRule):
    ...
Traceback (most recent call last):
  File ../fixit/upgrade/remove_rule_suffix.py", line 58, in visit_ClassDef
    qname = metadata.pop().name
KeyError: 'pop from an empty set'

amyreese avatar Nov 09 '23 02:11 amyreese

Hmm, metadata should never be mutated

zsol avatar Nov 09 '23 14:11 zsol