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

fix: error in unique_items validator (#4626) #4627

Closed
wants to merge 1 commit into from
Closed

fix: error in unique_items validator (#4626) #4627

wants to merge 1 commit into from

Conversation

nuno-andre
Copy link
Contributor

Fixes #4626

@samuelcolvin
Copy link
Member

As part of the move to V2, all of pydantic/types.py has been removed or changed, see #4516.

Therefore this change doesn't make sense.

Happy to consider adding it to pydantic-core if a good approach can be found pydantic/pydantic-core#296

@nuno-andre
Copy link
Contributor Author

@samuelcolvin Would it make sense to submit this PR to the 1.10.X-fixes branch?

@samuelcolvin
Copy link
Member

Are you sure this isn't fixed by #4568?

@samuelcolvin
Copy link
Member

If this is different to that PR, and is just fixing a bug, yes but it needs unit tests.

@nuno-andre
Copy link
Contributor Author

Are you sure this isn't fixed by #4568?

My bad! I didn't search for this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not iterable error in optional lists constrained by unique items
2 participants