File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
html/supertokens_python/framework/fastapi Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -46,17 +46,14 @@ <h1 class="title">Module <code>supertokens_python.framework.fastapi.fastapi_midd
4646from supertokens_python.framework import BaseResponse
4747
4848if TYPE_CHECKING:
49- from fastapi import FastAPI, Request
49+ from fastapi import Request
5050
5151
5252def get_middleware():
5353 from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
5454 from supertokens_python.utils import default_user_context
5555
5656 class Middleware(BaseHTTPMiddleware):
57- def __init__(self, app: FastAPI):
58- super().__init__(app)
59-
6057 async def dispatch(self, request: Request, call_next: RequestResponseEndpoint):
6158 from supertokens_python import Supertokens
6259 from supertokens_python.exceptions import SuperTokensError
@@ -126,9 +123,6 @@ <h2 class="section-title" id="header-functions">Functions</h2>
126123 from supertokens_python.utils import default_user_context
127124
128125 class Middleware(BaseHTTPMiddleware):
129- def __init__(self, app: FastAPI):
130- super().__init__(app)
131-
132126 async def dispatch(self, request: Request, call_next: RequestResponseEndpoint):
133127 from supertokens_python import Supertokens
134128 from supertokens_python.exceptions import SuperTokensError
You can’t perform that action at this time.
0 commit comments