Skip to content

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
@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.

3 participants