Skip to content

[3.14] gh-155752: Do not crash when GenericAlias parameters change during substitution (GH-155761) - #155771

Open
miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-c0006fa-3.14
Open

[3.14] gh-155752: Do not crash when GenericAlias parameters change during substitution (GH-155761)#155771
miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-c0006fa-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

An alias argument can gain typing_subst after parameters has been cached, including during a preparation or substitution callback. Check that the argument is present before indexing the substitution arguments.
(cherry picked from commit c0006fa)

Co-authored-by: Darius Houle dariushoule@gmail.com

…ing substitution (pythonGH-155761)

An alias argument can gain __typing_subst__ after __parameters__ has been cached, including during a preparation or substitution callback. Check that the argument is present before indexing the substitution arguments.
(cherry picked from commit c0006fa)

Co-authored-by: Darius Houle <dariushoule@gmail.com>
@python-cla-bot

python-cla-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants