From d5e9901f3fedbb80bac0efbbf90f79c9fd225bcc Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 30 Mar 2022 19:37:29 +0200 Subject: [PATCH] Forward type annotation of depends --- lib/galaxy/webapps/galaxy/api/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/api/__init__.py b/lib/galaxy/webapps/galaxy/api/__init__.py index 49ea15124b5..2c59117a1e9 100644 --- a/lib/galaxy/webapps/galaxy/api/__init__.py +++ b/lib/galaxy/webapps/galaxy/api/__init__.py @@ -83,8 +83,7 @@ class GalaxyTypeDepends(Depends): self.galaxy_type_depends = dep_type -def depends(dep_type: Type[T]) -> Any: - +def depends(dep_type: Type[T]) -> T: def _do_resolve(request: Request): return get_app().resolve(dep_type)