Skip to content

Commit 3d9563c

Browse files
committed
One more mypy fix
1 parent 8d18ecc commit 3d9563c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

brood/middleware.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async def get_current_user(
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:
@@ -141,7 +141,7 @@ async def get_current_user_with_groups(
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

0 commit comments

Comments
 (0)