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 #9873/c9698c8e backport][3.12] Make creating RequestInfo backwards compatible with 3.10 #9886

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Nov 14, 2024

This is a backport of PR #9873 as merged into master (c9698c8).

It was unexpected that this object was being created directly outside of aiohttp internals. While it looks like its only used for mocking internal state downstream, we can accommodate that by subclassing the NamedTuple and providing a __new__ while keeping the faster tuple.__new__ internally.

We might remove the back-compat later in 4.x development cycle, however since its currently being used downstream to mock internals and there isn't a better prescribed way to do that, leave it for now.

fixes #9866

Copy link

codspeed-hq bot commented Nov 14, 2024

CodSpeed Performance Report

Merging #9886 will not alter performance

Comparing patchback/backports/3.12/c9698c8ecadc344a55e8b05d5c43391e39443ad9/pr-9873 (262a3d5) with master (a118114)

Summary

✅ 24 untouched benchmarks

@bdraco bdraco merged commit 32c896d into 3.12 Nov 14, 2024
33 of 34 checks passed
@bdraco bdraco deleted the patchback/backports/3.12/c9698c8ecadc344a55e8b05d5c43391e39443ad9/pr-9873 branch November 14, 2024 21:12
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.

1 participant