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

[3.11] Make creating RequestInfo backwards compatible with 3.10 #9872

Closed
wants to merge 1 commit into from

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Nov 14, 2024

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

fixes #9866

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

fixes #9866
@bdraco bdraco closed this Nov 14, 2024
@bdraco bdraco reopened this Nov 14, 2024
@bdraco bdraco changed the base branch from master to 3.11 November 14, 2024 14:16
@bdraco bdraco changed the title Increment version to 3.11.1.dev0 (#9863) Make creating RequestInfo backwards compatible with 3.10 Nov 14, 2024
@bdraco bdraco changed the title Make creating RequestInfo backwards compatible with 3.10 [3.11] Make creating RequestInfo backwards compatible with 3.10 Nov 14, 2024
@bdraco
Copy link
Member Author

bdraco commented Nov 14, 2024

Really not harm in doing this on master as well as we can always deprecate it later

@bdraco bdraco closed this Nov 14, 2024
@bdraco bdraco deleted the request_info_compat branch November 15, 2024 15:58
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.

RequestInfo change to a named tuple broke BC
1 participant