diff --git a/src/fixit/config.py b/src/fixit/config.py index 8b596092..79b3b8be 100644 --- a/src/fixit/config.py +++ b/src/fixit/config.py @@ -69,6 +69,9 @@ def __init__(self, msg: str, rule: QualifiedRule): super().__init__(msg) self.rule = rule + def __reduce__(self): + return type(self), (*self.args, self.rule) + def is_rule(obj: Type[T]) -> bool: """