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

Use Pydantic model_validate to avoid Pyright warnings #586

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

disrupted
Copy link
Member

@disrupted disrupted commented Jan 14, 2025

Pyright is trying to be smart and evaluates inputs when using dict unpacking syntax during Pydantic model instantiation. This will obviously cause issues because of the enrichment strategy for KPOps components. It's especially undesired in tests where we deliberately omit certain attributes....

@disrupted disrupted added type/refactor Refactoring of existing functionality area/tests Relates to tests labels Jan 14, 2025
@disrupted disrupted self-assigned this Jan 14, 2025
@disrupted disrupted requested a review from JakobEdding January 14, 2025 14:48
@disrupted disrupted merged commit 6018da7 into main Jan 15, 2025
13 checks passed
@disrupted disrupted deleted the refactor/pydantic-model-validate branch January 15, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tests Relates to tests type/refactor Refactoring of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants