Skip to content

Commit

Permalink
InferringRouter has been deprecated
Browse files Browse the repository at this point in the history
As per fastapi-utils warning: "InferringRouter is deprecated, as its functionality is now provided in fastapi.APIRouter", DeprecationWarning
  • Loading branch information
jdavcs committed Dec 13, 2023
1 parent 26ffc86 commit d4b35df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/galaxy/webapps/galaxy/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

from a2wsgi.wsgi import build_environ
from fastapi import (
APIRouter,
Form,
Header,
Query,
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d4b35df

Please sign in to comment.