-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-133413: Change the request.Request example method #133414
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
gh-133413: Change the request.Request example method #133414
Conversation
has_data is used in the explanation of mock autospeccing. This method of request.Request was removed in version 3.4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The |
Thanks of reviewing this issue. I can propose a fix for the two other references to |
I would prefer to fix them all in one PR. This is just a documentation issue, and it is old, so few days or weeks don't matter. |
has_data was removed in version 3.4
Hi @serhiy-storchaka, I added a commit to fix the two references. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks @ppaez for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
GH-133945 is a backport of this pull request to the 3.14 branch. |
GH-133946 is a backport of this pull request to the 3.13 branch. |
Thank you for your contribution @ppaez. |
The method has_data of request.Request is used in the explanation of mock autospeccing. This method was removed in version 3.4. This PR proposes to use header_items instead.
📚 Documentation preview 📚: https://cpython-previews--133414.org.readthedocs.build/