-
Notifications
You must be signed in to change notification settings - Fork 437
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
ruamel.yaml 0.17.0 has deprecated dump(), load() #765
Comments
@jwhitlock Is this issue closed, as the PRs were merged? |
The merged PRs are on our project, and mention this issue, mostly to say there is a warning that requires a |
PR #806 is a fix for this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
drf_yasg
is using functions that have been deprecated in ruamel.yaml 0.17.0, released 2021-03-26:I believe this affects only
yaml_sane_dump
andyaml_sane_load
.Is this a regression?
Not a
drf-yasg
one. ruamel.yaml 0.16.3, the first supported version and the last to support Python 2, does not have this deprecation warning. It also may not have the extended arguments toYAML()
..Minimal Reproduction
I discovered this while testing the endpoint with pytest in mozilla/fx-private-relay#1447.
Another way to reproduce it is with a short bit of code. Add this to a working Django / drf-yasg project as
repo_bug.py
:Run with
python -Wd repo_bug.py
. The-Wd
is needed to display thePendingDeprecationWarning
s.Stack trace / Error message
Your Environment
Tested with Python 3.7.12 with these select dependencies:
The text was updated successfully, but these errors were encountered: