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 ()