mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Forward type annotation of depends
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user