We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72806f0 commit 203a1ceCopy full SHA for 203a1ce
fastapi_pagination/api.py
@@ -36,7 +36,11 @@
36
)
37
from fastapi.routing import APIRoute, APIRouter
38
from pydantic import BaseModel
39
-from starlette.routing import request_response
+
40
+try:
41
+ from fastapi.routing import request_response
42
+except ImportError: # pragma: no cover
43
+ from starlette.routing import request_response
44
45
from .bases import AbstractPage, AbstractParams
46
from .errors import UninitializedConfigurationError
0 commit comments