From cfd7de1aa4ce309815078b98822bfee366804547 Mon Sep 17 00:00:00 2001 From: Artemy Efimov Date: Mon, 27 May 2024 13:18:05 +0500 Subject: [PATCH] Change `ApplicationModule._handler` type annotation --- lato/application_module.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lato/application_module.py b/lato/application_module.py index 78ce813..d788646 100644 --- a/lato/application_module.py +++ b/lato/application_module.py @@ -17,7 +17,9 @@ def __init__(self, name: str): :param name: Name of the module """ self.name: str = name - self._handlers: defaultdict[str, OrderedSet[Callable]] = defaultdict(OrderedSet) + self._handlers: defaultdict[HandlerAlias, OrderedSet[Callable]] = defaultdict( + OrderedSet + ) self._submodules: OrderedSet[ApplicationModule] = OrderedSet() @property