From d4b35df4de153e30d692cb908864e0b2ed0e072c Mon Sep 17 00:00:00 2001 From: John Davis Date: Wed, 13 Dec 2023 11:40:20 -0500 Subject: [PATCH] InferringRouter has been deprecated As per fastapi-utils warning: "InferringRouter is deprecated, as its functionality is now provided in fastapi.APIRouter", DeprecationWarning --- lib/galaxy/webapps/galaxy/api/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/api/__init__.py b/lib/galaxy/webapps/galaxy/api/__init__.py index 4c8df89bee77..6b633463cd21 100644 --- a/lib/galaxy/webapps/galaxy/api/__init__.py +++ b/lib/galaxy/webapps/galaxy/api/__init__.py @@ -22,6 +22,7 @@ from a2wsgi.wsgi import build_environ from fastapi import ( + APIRouter, Form, Header, Query, @@ -38,7 +39,6 @@ APIKeyQuery, ) from fastapi_utils.cbv import cbv -from fastapi_utils.inferring_router import InferringRouter from pydantic import ValidationError from pydantic.main import BaseModel from starlette.datastructures import Headers @@ -353,8 +353,8 @@ class RestVerb(str, Enum): options = "OPTIONS" -class FrameworkRouter(InferringRouter): - """A FastAPI Inferring Router tailored to Galaxy.""" +class FrameworkRouter(APIRouter): + """A FastAPI Router tailored to Galaxy.""" admin_user_dependency: Any