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

Reverse order of typing when multiple can match #38

Merged
merged 2 commits into from
Dec 20, 2024
Merged

Conversation

mdegat01
Copy link
Collaborator

Proposed Changes

Strings also pass the typing test for list[str] or set[str] so typing order must be reversed to prevent incorrect parsing/serialization in any fields where both are accepted.

@mdegat01 mdegat01 added the bugfix Inconsistencies or issues which will cause a problem for users or implementers. label Dec 19, 2024
Copy link
Contributor

@emontnemery emontnemery left a comment

Choose a reason for hiding this comment

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

The change looks good, but we might need a test also for FullBackupOptions?

Copy link
Contributor

@emontnemery emontnemery left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @mdegat01 👍

@agners agners merged commit f5bd4b0 into main Dec 20, 2024
7 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2024
@agners agners deleted the fix-backup-typing branch January 29, 2025 10:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugfix Inconsistencies or issues which will cause a problem for users or implementers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants