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

[feat] Disable pyright checking field Pydantic field aliases #102

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

blast-hardcheese
Copy link
Contributor

Why

If we ignore the alias field, we can use pyright to typecheck python generated clients.

What changed

Reflow the field assignment to permit ignoring type aliases like alias="$kind"

Test plan

Manually ran against production services, typechecked OK

@blast-hardcheese blast-hardcheese requested a review from a team as a code owner October 25, 2024 18:31
@blast-hardcheese blast-hardcheese requested review from jackyzha0 and removed request for a team October 25, 2024 18:31
@blast-hardcheese blast-hardcheese enabled auto-merge (squash) October 25, 2024 18:32
@blast-hardcheese blast-hardcheese merged commit 1c06a0b into main Oct 25, 2024
3 checks passed
@blast-hardcheese blast-hardcheese deleted the dstewart/feat/pyright-ignore-field-aliases branch October 25, 2024 18:33
@blast-hardcheese blast-hardcheese added the enhancement New feature or request label Oct 25, 2024
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.

2 participants