From dbdef7c602ebe467c84aa4e1108170ffbed2b33f Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 14 Jun 2023 00:54:35 +0300 Subject: [PATCH] walker: update naming conventions --- src/mdis/walker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mdis/walker.py b/src/mdis/walker.py index 3adb93c..507d953 100644 --- a/src/mdis/walker.py +++ b/src/mdis/walker.py @@ -8,17 +8,17 @@ class WalkerMeta(_dispatcher.DispatcherMeta): class Walker(_dispatcher.Dispatcher, metaclass=WalkerMeta): @_core.hook(tuple, list, set, frozenset) - def sequence(self, instance): + def dispatch_sequence(self, instance): for item in instance: yield item yield from self(item) @_core.hook(dict) - def mapping(self, instance): + def dispatch_mapping(self, instance): for (key, value) in instance.items(): yield (key, value) yield from self((key, value)) @_core.hook(object) - def object(self, instance): + def dispatch_object(self, instance): yield from () -- 2.30.2