Skip to content

Commit

Permalink
literally no idea how pyright suddenly began failing on random, untou…
Browse files Browse the repository at this point in the history
…ched files, ignore those errors

The pyproject was not updated, pyright should not have changed in any way. Pyright is now detecting new errors on previously ok lines both in CI and locally.
  • Loading branch information
fisher60 committed Feb 5, 2024
1 parent 9ad6410 commit b5c5db0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions abandonauth/dependencies/auth/jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def decode_jwt(
token_data = jwt.decode(
token,
settings.JWT_SECRET.get_secret_value(),
**decode_kwargs
**decode_kwargs # pyright: ignore
)
except JWTError:
raise HTTPException(
Expand Down Expand Up @@ -123,7 +123,7 @@ def __init__(
self.aud = aud
self.required_scope = scope

async def __call__(self, request: Request) -> JwtClaimsDataDto:
async def __call__(self, request: Request) -> JwtClaimsDataDto: # pyright: ignore
"""
Retrieve user from a jwt token provided in headers.
Expand Down
2 changes: 1 addition & 1 deletion abandonauth/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Settings(BaseSettings):
GOOGLE_CLIENT_SECRET: pydantic.SecretStr
GOOGLE_CALLBACK: str

class Config:
class Config: # pyright: ignore
frozen = True
env_file = '.env'
env_file_encoding = 'utf-8'
Expand Down

0 comments on commit b5c5db0

Please sign in to comment.