@@ -39,13 +39,13 @@ async def get_current_user(
3939 """
4040 Middleware returns user if its token or web3 signature verified.
4141 """
42- authorization : str = request .headers .get ("Authorization" )
42+ authorization : str = request .headers .get ("Authorization" ) # type: ignore
4343 scheme_raw , _ = get_authorization_scheme_param (authorization )
4444 scheme = scheme_raw .lower ()
4545 if token is None or token == "" :
4646 raise HTTPException (status_code = 404 , detail = "Access token not found" )
4747
48- signature_application : str = request .headers .get (BUGOUT_APPLICATION_ID_HEADER )
48+ signature_application : str = request .headers .get (BUGOUT_APPLICATION_ID_HEADER ) # type: ignore
4949 application_id = None
5050 if signature_application is not None :
5151 try :
@@ -135,13 +135,13 @@ async def get_current_user_with_groups(
135135 """
136136 Middleware returns user with groups it belongs if its token or web3 signature verified.
137137 """
138- authorization : str = request .headers .get ("Authorization" )
138+ authorization : str = request .headers .get ("Authorization" ) # type: ignore
139139 scheme_raw , _ = get_authorization_scheme_param (authorization )
140140 scheme = scheme_raw .lower ()
141141 if token is None or token == "" :
142142 raise HTTPException (status_code = 404 , detail = "Access token not found" )
143143
144- signature_application : str = request .headers .get (BUGOUT_APPLICATION_ID_HEADER )
144+ signature_application : str = request .headers .get (BUGOUT_APPLICATION_ID_HEADER ) # type: ignore
145145 application_id = None
146146 if signature_application is not None :
147147 try :
@@ -225,7 +225,7 @@ def autogenerated_user_token_check(request: Request) -> bool:
225225 is_autogenerated_user = False
226226 installation_token_header : Optional [str ] = request .headers .get (
227227 BOT_INSTALLATION_TOKEN_HEADER , None
228- )
228+ ) # type: ignore
229229 if (
230230 installation_token_header is not None
231231 and BOT_INSTALLATION_TOKEN == installation_token_header
@@ -253,7 +253,7 @@ async def is_token_restricted_or_installation(
253253 Because of oauth2_scheme_manual we could accept None
254254 for follow up Bugout header check.
255255 """
256- authorization : str = request .headers .get ("Authorization" )
256+ authorization : str = request .headers .get ("Authorization" ) # type: ignore
257257 scheme_raw , _ = get_authorization_scheme_param (authorization )
258258 scheme = scheme_raw .lower ()
259259
@@ -276,7 +276,7 @@ async def is_token_restricted(
276276 """
277277 Check if user's token is restricted or not.
278278 """
279- authorization : str = request .headers .get ("Authorization" )
279+ authorization : str = request .headers .get ("Authorization" ) # type: ignore
280280 scheme_raw , _ = get_authorization_scheme_param (authorization )
281281 scheme = scheme_raw .lower ()
282282
0 commit comments