fix: correct return type in _load_wsgi_app function

This commit is contained in:
Илья Глазунов 2025-12-04 01:30:18 +03:00
parent edaccb59bb
commit 59d6ae2fd2

View File

@ -55,7 +55,8 @@ def _load_wsgi_app() -> Callable[..., Any]:
if is_factory: if is_factory:
result: Callable[..., Any] = app_or_factory() result: Callable[..., Any] = app_or_factory()
return result return result
return app_or_factory # type: ignore[return-value] loaded_app: Callable[..., Any] = app_or_factory
return loaded_app
def _create_asgi_app() -> Any: def _create_asgi_app() -> Any: