Skip to content

Commit

Permalink
Add return type annotation to ApplicationModule.handler method
Browse files Browse the repository at this point in the history
  • Loading branch information
artemyfmv committed May 27, 2024
1 parent cfd7de1 commit 1df4f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lato/application_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def include_submodule(self, a_module: "ApplicationModule"):
), f"Can only include {ApplicationModule} instances, got {a_module}"
self._submodules.add(a_module)

def handler(self, alias: HandlerAlias):
def handler(self, alias: HandlerAlias) -> Callable:
"""
Decorator for registering a handler. Handler can be aliased by a name or by a message type.
Expand Down

0 comments on commit 1df4f74

Please sign in to comment.