You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an annotated_type.MaxLen annotation with a custom sequence it rejects sequences that have precisely the maximum length when it should only reject if they are greater.
I'm pretty sure this is because the validator function used for custom sequences currently checks for strict inequality rather than less or equal.
Initial Checks
Description
When using an
annotated_type.MaxLen
annotation with a custom sequence it rejects sequences that have precisely the maximum length when it should only reject if they are greater.I'm pretty sure this is because the validator function used for custom sequences currently checks for strict inequality rather than less or equal.
Example Code
Python, Pydantic & OS Version
Selected Assignee: @davidhewitt
The text was updated successfully, but these errors were encountered: