From 2a28cb13025e041e6e3764d6104463ac1395b9fd Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 14 Jun 2023 00:54:46 +0300 Subject: [PATCH] visitor: update naming conventions --- src/mdis/visitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mdis/visitor.py b/src/mdis/visitor.py index 2b28433..9b1e02b 100644 --- a/src/mdis/visitor.py +++ b/src/mdis/visitor.py @@ -9,6 +9,7 @@ class VisitorMeta(_dispatcher.DispatcherMeta): class Visitor(_dispatcher.Dispatcher, metaclass=VisitorMeta): + @_contextlib.contextmanager @_core.hook(object) - def object(self, instance): + def dispatch_object(self, instance): yield instance -- 2.30.2