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

Patchback/backports/3.9/e5beaca052434cbf1c1814170917085eb271ba43/pr 3892 implement response check #6731

Conversation

arjd
Copy link
Contributor

@arjd arjd commented May 2, 2022

What do these changes do?

Backport for #3892, which allowed raise_for_status to optionally be a coroutine.

Are there changes in behavior for the user?

Should be fully backwards-compatible.

Related issue number

#3892

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

* implement response check, aio-libs#3864

* switch to raise_for_status coroutine

* fix linting

* revert name corrections

* fix types, add request tests

* change and docs

* allow non callable truey raise_for_status

(cherry picked from commit e5beaca)
@arjd arjd requested review from webknjaz and asvetlov as code owners May 2, 2022 21:35
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label May 2, 2022
@Dreamsorcerer
Copy link
Member

Looks like the noqa is not needed. Looks good to me once the pre-commit passes. Thanks.

@Dreamsorcerer Dreamsorcerer enabled auto-merge (squash) May 2, 2022 22:35
auto-merge was automatically disabled May 2, 2022 22:37

Head branch was pushed to by a user without write access

@Dreamsorcerer Dreamsorcerer enabled auto-merge (squash) May 3, 2022 16:29
@Dreamsorcerer Dreamsorcerer merged commit 81130a5 into aio-libs:3.9 May 3, 2022
@arjd arjd deleted the patchback/backports/3.9/e5beaca052434cbf1c1814170917085eb271ba43/pr-3892 branch May 3, 2022 17:16
@HansBrende
Copy link

@arjd the world thanks you 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants