Skip to content

Commit 8d18ecc

Browse files
committed
Mypy update is a hell
1 parent ffdf799 commit 8d18ecc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

brood/middleware.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ 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 == "":
@@ -135,7 +135,7 @@ 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 == "":
@@ -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

Comments
 (0)