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 #7365/44f322d4 backport][3.9] Turn RawResponseMessage into a NamedTuple #7369

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Jul 17, 2023

This is a backport of PR #7365 as merged into master (44f322d).

What do these changes do?

This makes pyright happier when accessing the fields on the class

Are there changes in behavior for the user?

No complaints from pyright with regards to it thinking the fields are unknown.

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."

## What do these changes do?

This makes pyright happier when accessing the fields on the class

## Are there changes in behavior for the user?

No complaints from pyright with regards to it thinking the fields are
unknown.

## Checklist

- [x] 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 &lt;Name&gt; &lt;Surname&gt;.
  * 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."

---------

Co-authored-by: Sam Bull <[email protected]>
(cherry picked from commit 44f322d)
@patchback patchback bot requested a review from asvetlov as a code owner July 17, 2023 21:09
@Dreamsorcerer Dreamsorcerer enabled auto-merge (squash) July 17, 2023 21:09
@codecov
Copy link

codecov bot commented Jul 17, 2023

Codecov Report

Merging #7369 (48e5e14) into 3.9 (7e491cc) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              3.9    #7369      +/-   ##
==========================================
- Coverage   97.27%   97.22%   -0.06%     
==========================================
  Files         107      107              
  Lines       31584    31592       +8     
  Branches     4009     4010       +1     
==========================================
- Hits        30724    30715       -9     
- Misses        653      669      +16     
- Partials      207      208       +1     
Flag Coverage Δ
CI-GHA 97.17% <100.00%> (-0.05%) ⬇️
OS-Linux 96.85% <100.00%> (-0.05%) ⬇️
OS-Windows 94.53% <100.00%> (+<0.01%) ⬆️
OS-macOS 96.59% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 94.44% <100.00%> (+<0.01%) ⬆️
Py-3.10.12 96.78% <100.00%> (+<0.01%) ⬆️
Py-3.11.0 96.52% <100.00%> (+<0.01%) ⬆️
Py-3.8.10 94.42% <100.00%> (+<0.01%) ⬆️
Py-3.8.16 96.60% <100.00%> (?)
Py-3.8.17 96.60% <100.00%> (-0.12%) ⬇️
Py-3.9.13 94.42% <100.00%> (+<0.01%) ⬆️
Py-3.9.17 96.75% <100.00%> (+<0.01%) ⬆️
Py-pypy7.3.11 ?
VM-macos 96.59% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 96.85% <100.00%> (-0.05%) ⬇️
VM-windows 94.53% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
aiohttp/http_parser.py 98.31% <100.00%> (+0.02%) ⬆️

... and 3 files with indirect coverage changes

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

@Dreamsorcerer Dreamsorcerer merged commit 578d423 into 3.9 Jul 17, 2023
@Dreamsorcerer Dreamsorcerer deleted the patchback/backports/3.9/44f322d43aad39d9491394c93fd7ae08a4a2514d/pr-7365 branch July 17, 2023 21:45
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