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

PydanticDeprecatedSince20: The parse_raw method is deprecated #70

Open
jcjrobert opened this issue Nov 14, 2023 · 0 comments
Open

PydanticDeprecatedSince20: The parse_raw method is deprecated #70

jcjrobert opened this issue Nov 14, 2023 · 0 comments

Comments

@jcjrobert
Copy link
Collaborator

开始运行时出现
/app/meme_generator/app.py:52: PydanticDeprecatedSince20: The parse_raw method is deprecated; if your data is JSON use model_validate_json, otherwise load the data then use model_validate instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.4/migration/
model = args_model.parse_raw(args)
/app/meme_generator/app.py:72: PydanticDeprecatedSince20: The dict method is deprecated; use model_dump instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.4/migration/

不过不影响运行

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

No branches or pull requests

1 participant