Skip to content

Commit 744e56b

Browse files
committed
adding dev-v0.18.11 tag to this commit to ensure building
1 parent 2ee64cc commit 744e56b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

html/supertokens_python/framework/fastapi/fastapi_middleware.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,14 @@ <h1 class="title">Module <code>supertokens_python.framework.fastapi.fastapi_midd
4646
from supertokens_python.framework import BaseResponse
4747

4848
if TYPE_CHECKING:
49-
from fastapi import FastAPI, Request
49+
from fastapi import Request
5050

5151

5252
def 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

0 commit comments

Comments
 (0)