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 warning about dict() v.s. model_dump() #554

Closed
simonw opened this issue Aug 19, 2024 · 0 comments
Closed

Fix warning about dict() v.s. model_dump() #554

simonw opened this issue Aug 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@simonw
Copy link
Owner

simonw commented Aug 19, 2024

End of python -m pytest:

======== warnings summary ========
tests/test_keys.py: 4 warnings
tests/test_llm.py: 23 warnings
tests/test_templates.py: 4 warnings
  /Users/simon/.local/share/virtualenvs/llm-p4p8CDpq/lib/python3.10/site-packages/pydantic/main.py:1024: 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.6/migration/
    warnings.warn('The `dict` method is deprecated; use `model_dump` instead.', category=PydanticDeprecatedSince20)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======== 183 passed, 31 warnings in 2.28s ========
@simonw simonw added the bug Something isn't working label Aug 19, 2024
@simonw simonw closed this as completed in e867e13 Aug 19, 2024
simonw added a commit that referenced this issue Sep 12, 2024
gianlucatruda pushed a commit to gianlucatruda/simonw-llm that referenced this issue Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant