Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce mypy in CI, fix all type errors #16

Merged
merged 3 commits into from
Jun 16, 2024
Merged

Enforce mypy in CI, fix all type errors #16

merged 3 commits into from
Jun 16, 2024

Conversation

cmyui
Copy link
Member

@cmyui cmyui commented Jun 16, 2024

No description provided.

.github/workflows/lint.yml Outdated Show resolved Hide resolved
@@ -11,8 +11,8 @@ def __init__(self, request: Request) -> None:

@property
def db(self) -> database.Database:
return self.request.state.db
return self.request.state.db # type: ignore[no-any-return]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hax but fine for now imo. FastAPI typing for app state is not great.

@cmyui cmyui self-assigned this Jun 16, 2024
@cmyui cmyui merged commit cd0fb7b into main Jun 16, 2024
2 checks passed
@cmyui cmyui deleted the type-fixes branch June 16, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants