Skip to content

Commit

Permalink
fix some typing
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut committed Jan 15, 2025
1 parent d79ce8a commit 08ac625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litestar/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def _iter_handlers(
else:
yield handler, bases

def _reduce_handlers(self, handlers: list[ControllerRouterHandler]) -> Generator[BaseRouteHandler, None, None]:
def _reduce_handlers(self, handlers: Iterable[ControllerRouterHandler]) -> Generator[BaseRouteHandler, None, None]:
"""Reduce possibly nested 'handlers' by recursively iterating over them and their
sub-handlers (e.g. handlers inside a router), and merging all the options of all
the layers above into one new handler. This allows us to eliminate all the
Expand Down

0 comments on commit 08ac625

Please sign in to comment.