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

Deque's maxlen property dropped on V1 validation #6586

Merged
merged 3 commits into from Jul 11, 2023

Conversation

maciekglowka
Copy link

@maciekglowka maciekglowka commented Jul 11, 2023

Change Summary

Initial proposal to fix the maxlen property being dropped on deque validation. Happened only if the deque item has been typed.
Fix happens only in the _validate_sequence_like func. Do not know pydantic's code base, so if there is a neater place / way to solve it I am more than happy to make a change if directed

Related issue number

fix #6581

Selected Reviewer: @PrettyWood

@maciekglowka maciekglowka marked this pull request as ready for review July 11, 2023 12:32
@hramezani
Copy link
Member

please add one line description on changefile

@maciekglowka
Copy link
Author

Sorry! forgot about that.
Btw the format description page link is broken:
https://github.com/pydantic/pydantic/tree/main/changes#pending-changes

@ https://github.com/pydantic/hooky#readme

@hramezani
Copy link
Member

please review

@hramezani
Copy link
Member

Thanks @maciekglowka

@hramezani hramezani merged commit 2aaddf6 into pydantic:1.10.X-fixes Jul 11, 2023
49 checks passed
@maciekglowka
Copy link
Author

Thanks for merging so fast :)

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.

None yet

3 participants