8000 `FieldValidationInfo` is deprecated, use `ValidationInfo` instead. · Issue #1341 · copier-org/copier · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

FieldValidationInfo is deprecated, use ValidationInfo instead. #1341

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

Closed
RomainBrault opened this issue Sep 25, 2023 · 1 comment · Fixed by #1342
Closed

FieldValidationInfo is deprecated, use ValidationInfo instead. #1341

RomainBrault opened this issue Sep 25, 2023 · 1 comment · Fixed by #1342

Comments

@RomainBrault
Copy link
Contributor

Describe the problem

Pydantic 2.4.0 emits the warning:

FieldValidationInfo is deprecated, use ValidationInfo instead.'

Template

https://github.com/RomainBrault/python-whiteprint

To Reproduce

No response

Logs

E       AssertionError: The CLI did not exit properly.
E       assert 1 == 0
E        +  where 1 = <Result DeprecationWarning('`FieldValidationInfo` is deprecated, use `ValidationInfo` instead.')>.exit_code`

Expected behavior

No warning should be emited

Screenshots/screencasts/logs

No response

Operating system

Linux

Operating system distribution and version

Ubuntu 23.04

Copier version

8.3.0

Python version

3.11.5

Installation method

distro package

Additional context

Conda install

The fix looks simple:

Replace FieldValidationInfo by FieldValidation in user_data.py

@RomainBrault RomainBrault added bug triage Trying to make sure if this is valid or not labels Sep 25, 2023
@sisp
Copy link
Member
sisp commented Sep 25, 2023

Thanks for reporting this, @RomainBrault! 🙏 Would you like to submit a PR?

@yajo yajo removed the triage Trying to make sure if this is valid or not label Sep 29, 2023
@yajo yajo added this to the Community contribution milestone Sep 29, 2023
@yajo yajo closed this as completed in #1342 Oct 4, 2023
yajo added a commit that referenced this issue Oct 4, 2023
…rning (#1342)

* Bump minimum version number for pydantic to 2.4.2

* build: update poetry.lock

* build: update flake.lock

* build(nix): lock compatible poetry-core and poetry-dynamic-versioning versions

Fix #1341.

Co-authored-by: Jairo Llopis <yajo.sk8@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
0