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

[PR #7733/3b68b2f3 backport][3.9] Fix, update, and improve client exceptions documentation #7737

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Oct 20, 2023

This is a backport of PR #7733 as merged into master (3b68b2f).

What do these changes do?

In the Hierarchy of exceptions section of the Client Reference documentation:

  • Fix ServerConnectionError indentation, denoting that it subclasses ClientConnectionError, not ClientOSError
  • Fix ServerFingerprintMismatch indentation, denoting that it subclasses ServerConnectionError, not ClientOSError
  • Normalize the formatting so as to consistently use two, rather than three, spaces for indentation
  • Normalize the formatting so as to consistently include a blank newline between exceptions
  • Order exceptions alphabetically
  • Add TooManyRedirects
  • Add UnixClientConnectorError

Also order the documentation of client exceptions alphabetically by hierarchy

Checklist

  • [N/A] I think the code is well written
  • [N/A] Unit tests for the changes exist
  • [N/A] Documentation reflects the changes
  • [N/A ] 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."

## What do these changes do?

In the *Hierarchy of exceptions* section of the *Client Reference*
documentation:
- Fix `ServerConnectionError` indentation, denoting that it subclasses
`ClientConnectionError`, not `ClientOSError`
- Fix `ServerFingerprintMismatch` indentation, denoting that it
subclasses `ServerConnectionError`, not `ClientOSError`
- Normalize the formatting so as to consistently use two, rather than
three, spaces for indentation
- Normalize the formatting so as to consistently include a blank newline
between exceptions
- Order exceptions alphabetically
- Add `TooManyRedirects`
- Add `UnixClientConnectorError`

Also order the documentation of client exceptions alphabetically by
hierarchy

(cherry picked from commit 3b68b2f)
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Merging #7737 (1638782) into 3.9 (bcdd4a5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              3.9    #7737   +/-   ##
=======================================
  Coverage   97.30%   97.30%           
=======================================
  Files         107      107           
  Lines       31910    31910           
  Branches     3729     3729           
=======================================
  Hits        31051    31051           
  Misses        654      654           
  Partials      205      205           
Flag Coverage Δ
CI-GHA 97.22% <ø> (ø)
OS-Linux 96.91% <ø> (ø)
OS-Windows 94.41% <ø> (ø)
OS-macOS 96.56% <ø> (ø)
Py-3.10.11 94.33% <ø> (ø)
Py-3.10.13 96.74% <ø> (-0.01%) ⬇️
Py-3.11.6 96.43% <ø> (ø)
Py-3.8.10 94.30% <ø> (ø)
Py-3.8.18 96.67% <ø> (ø)
Py-3.9.13 94.31% <ø> (ø)
Py-3.9.18 96.71% <ø> (+<0.01%) ⬆️
Py-pypy7.3.11 96.10% <ø> (-0.01%) ⬇️
VM-macos 96.56% <ø> (ø)
VM-ubuntu 96.91% <ø> (ø)
VM-windows 94.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Dreamsorcerer Dreamsorcerer merged commit 4803006 into 3.9 Oct 20, 2023
23 of 28 checks passed
@Dreamsorcerer Dreamsorcerer deleted the patchback/backports/3.9/3b68b2f3abe8a9e554e4bbd8bcabb9847f364806/pr-7733 branch October 20, 2023 18:33
xiangxli pushed a commit to xiangxli/aiohttp that referenced this pull request Dec 4, 2023
…ient exceptions documentation (aio-libs#7737)

**This is a backport of PR aio-libs#7733 as merged into master
(3b68b2f).**

In the *Hierarchy of exceptions* section of the *Client Reference*
documentation:
- Fix `ServerConnectionError` indentation, denoting that it subclasses
`ClientConnectionError`, not `ClientOSError`
- Fix `ServerFingerprintMismatch` indentation, denoting that it
subclasses `ServerConnectionError`, not `ClientOSError`
- Normalize the formatting so as to consistently use two, rather than
three, spaces for indentation
- Normalize the formatting so as to consistently include a blank newline
between exceptions
- Order exceptions alphabetically
- Add `TooManyRedirects`
- Add `UnixClientConnectorError`

Also order the documentation of client exceptions alphabetically by
hierarchy

- [N/A] I think the code is well written
- [N/A] Unit tests for the changes exist
- [N/A] Documentation reflects the changes
- [N/A ] If you provide code modification, please add yourself to
`CONTRIBUTORS.txt`
  * The format is &lt;Name&gt; &lt;Surname&gt;.
  * Please keep alphabetical order, the file is sorted by names.
- [X] 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."

Co-authored-by: Harmon <Harmon758@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants