From b6e815dc6bdac372b1f263be7df8fcd493a9420c Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 19 Nov 2026 23:04:06 +0100 Subject: [PATCH] Restore the staticmethod decorator of the accessibility model's bug predicate When get_rollback_point was added to the accessibility model, it was inserted between the @staticmethod decorator and __is_accessibility_bug, so the predicate became an instance method without a self parameter (making training fail with a TypeError) and get_rollback_point became a static method with one. --- bugbug/models/accessibility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bugbug/models/accessibility.py b/bugbug/models/accessibility.py index 40c3dc10c8..196cd4185d 100644 --- a/bugbug/models/accessibility.py +++ b/bugbug/models/accessibility.py @@ -78,10 +78,10 @@ def __init__(self, lemmatization=True): ] ) - @staticmethod def get_rollback_point(self, item, label): return "creation" + @staticmethod def __is_accessibility_bug(bug): """Check if a bug is an accessibility bug.""" return (