[3.13] gh-138257: Fix internal RuleCollectorVisitor attribute name (GH-138208) (#138260)

gh-138257: Fix internal `RuleCollectorVisitor` attribute name (GH-138208)

The internal `RuleCollectorVisitor` class had an attribute named "rulses"
instead of "rules" that other `GrammarVisitor` subclasses define.
(cherry picked from commit 11217a883d)

Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-08-30 11:51:25 +02:00 committed by GitHub
parent e93cacb8cf
commit 573589cf75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ class RuleCollectorVisitor(GrammarVisitor):
"""Visitor that invokes a provieded callmaker visitor with just the NamedItem nodes"""
def __init__(self, rules: Dict[str, Rule], callmakervisitor: GrammarVisitor) -> None:
self.rulses = rules
self.rules = rules
self.callmaker = callmakervisitor
def visit_Rule(self, rule: Rule) -> None: