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

Remove unnecessary * parameter in views, create CommonParameters and CurrentIncident Annotated types #3200

Merged
merged 9 commits into from Apr 3, 2023

Conversation

wssheldon
Copy link
Contributor

@wssheldon wssheldon added the enhancement New feature or request label Mar 31, 2023
@@ -448,6 +448,12 @@ def common_parameters(
}


CommonParameters = Annotated[
dict[str, int | CurrentUser | DbSession | QueryStr | Json | List[str] | List[bool] | UserRoles],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should likely be a Pydantic model or TypedDict

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd lean on using a Pydantic model so we can do data validation.

@wssheldon
Copy link
Contributor Author

Python CI test failure is not related to this change and is resolved in: #3207

@wssheldon wssheldon merged commit 368c776 into master Apr 3, 2023
7 of 8 checks passed
@wssheldon wssheldon deleted the enhancement/annotated-q-parms branch April 3, 2023 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants