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.11] Make creating RequestInfo backwards compatible with 3.10 #9874

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

@bdraco bdraco enabled auto-merge (squash) November 14, 2024 14:40
Copy link

codspeed-hq bot commented Nov 14, 2024

CodSpeed Performance Report

Merging #9874 will not alter performance

Comparing patchback/backports/3.11/c9698c8ecadc344a55e8b05d5c43391e39443ad9/pr-9873 (32751c2) with 3.11 (95341e1)

Summary

✅ 24 untouched benchmarks

@bdraco bdraco merged commit daaea93 into 3.11 Nov 14, 2024
33 of 34 checks passed
@bdraco bdraco deleted the patchback/backports/3.11/c9698c8ecadc344a55e8b05d5c43391e39443ad9/pr-9873 branch November 14, 2024 14:54
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