René's URL Explorer Experiment


Title: Reject stale GenericAlias parameters on Python 3.15 by youknowdot · Pull Request #9069 · RustPython/RustPython · GitHub

Open Graph Title: Reject stale GenericAlias parameters on Python 3.15 by youknowdot · Pull Request #9069 · RustPython/RustPython

X Title: Reject stale GenericAlias parameters on Python 3.15 by youknowdot · Pull Request #9069 · RustPython/RustPython

Description: Current revision Targets main after #8950, with one logical commit: d0fe038eddaf53a97720fa57176fb9885dfc5723 (parent 4e3b2f40395a4235841aaca811843d97ed68af0d). The unique patch is byte-identical to the prior reviewed head and now includes main's merged #9082 shared CI fix and #9081 REPL fix; original author attribution and assistance trailers are retained. No files under Lib/ are changed. Normal hooks, whitespace checks, and independent tree/history review passed. The temporary [skip ci] marker is removed and normal CI is enabled for this final head. No new local build or runtime test is claimed. Validation recorded below belongs to earlier revisions unless explicitly stated otherwise. Rebased once after #9082 and #9081 merged to repair the shared Python 3.15 IO reference failure. Normal commit hooks and exact range-diff/patch-equivalence checks pass. Exact-head hosted CI is running; no additional local runtime validation is claimed. Summary Extract the GenericAlias stale-parameter guard from #8954, matching the Python 3.15.0 reference used by #8950. An alias argument can gain __typing_subst__ after __parameters__ has been cached. Reject that missing parameter with the reference TypeError instead of applying the unrelated fallback substitution path. Existing valid substitution and tuple-result validation are preserved. The unique commit changes native GenericAlias substitution and preserves the original 22-line Python regression in the existing typing snippet. Reference: CPython 3.15.0 source. Scope The unique commit changes no files under Lib/ and inherits .python-version 3.15.0 from #8950. The former shared Python 3.14.8 version pin and TextIOWrapper deletion change have been removed. The Python 3.15.0 TextIOWrapper setter checks attachment before rejecting _CHUNK_SIZE deletion, so the old I/O prerequisite does not belong in this stack. Validation Independent source review against the exact CPython 3.15.0 reference passed. The unique native implementation and original Python regression are preserved; the comparison above contains only the two files described here. Configured commit hooks passed for c6372289e26d9c4f450d2729c3dd51db38fd8363. No local build or runtime tests were run for this new Python 3.15 stack. Previous local and hosted results belong to the older Python 3.14.8 heads and do not validate this head. Normal hosted CI on this exact head is pending. AI-assisted with OpenAI Codex. Summary by CodeRabbit Bug Fixes Generic alias substitution now raises a clear TypeError when an argument supports substitution but is missing from the cached parameter list.

Open Graph Description: Current revision Targets main after #8950, with one logical commit: d0fe038eddaf53a97720fa57176fb9885dfc5723 (parent 4e3b2f40395a4235841aaca811843d97ed68af0d). The unique patch is byte-identical to...

X Description: Current revision Targets main after #8950, with one logical commit: d0fe038eddaf53a97720fa57176fb9885dfc5723 (parent 4e3b2f40395a4235841aaca811843d97ed68af0d). The unique patch is byte-identical to...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9069

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d5af1995-9e9b-56ae-0558-1c5948b6e64a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA1DE:361639:3269064:43460BB:6B01F832
html-safe-nonceb0339626662e992e0536cb342b10dfa0671d30bd455b29261abd4524de21a27d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMURFOjM2MTYzOTozMjY5MDY0OjQzNDYwQkI6NkIwMUY4MzIiLCJ2aXNpdG9yX2lkIjoiODg5ODQzNDMzMzY2MTA2NzMxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd6d86be059c073264ee54a4022893b8b4dfe90154e698819a977f38c081937ac
hovercard-subject-tagpull_request:4811515993
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9069/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altCurrent revision Targets main after #8950, with one logical commit: d0fe038eddaf53a97720fa57176fb9885dfc5723 (parent 4e3b2f40395a4235841aaca811843d97ed68af0d). The unique patch is byte-identical to...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9069/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9069%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9069%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9069/files
Reloadhttps://github.com/RustPython/RustPython/pull/9069/files
Reloadhttps://github.com/RustPython/RustPython/pull/9069/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:fix-generic-stale-parameters-3148https://github.com/youknowdot/RustPython/tree/fix-generic-stale-parameters-3148
Conversation 27 https://github.com/RustPython/RustPython/pull/9069
Commits 6 https://github.com/RustPython/RustPython/pull/9069/commits
Checks 20 https://github.com/RustPython/RustPython/pull/9069/checks
Files changed https://github.com/RustPython/RustPython/pull/9069/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9069/files
Reject stale GenericAlias parameters on Python 3.15 https://github.com/RustPython/RustPython/pull/9069/files#top
Show all changes 6 commits https://github.com/RustPython/RustPython/pull/9069/files
9c3351f Reject GenericAlias parameters added after caching youknowdot Oct 11, 2026 https://github.com/RustPython/RustPython/pull/9069/commits/9c3351f155a31d8f99c96f118b808cf77ac5422c
e92e032 Compute GenericAlias parameters lazily for Python 3.15 youknowdot Oct 11, 2026 https://github.com/RustPython/RustPython/pull/9069/commits/e92e0321934f05e7c9d48647185bccc233537ab2
c643a85 Check GenericAlias recursion at lazy parameter materialization youknowdot Oct 11, 2026 https://github.com/RustPython/RustPython/pull/9069/commits/c643a85d8704a4a0ab7adb2430d13337d5465db1
0dd2d8b Keep finite GenericAlias stack stress native-specific youknowdot Oct 11, 2026 https://github.com/RustPython/RustPython/pull/9069/commits/0dd2d8b524f266c9aa0ae890248a2b91cd21b66c
5ceff65 Materialize union parameters lazily like GenericAlias youknowdot Oct 11, 2026 https://github.com/RustPython/RustPython/pull/9069/commits/5ceff659172aaa1357776111bd489a805792b303
4809c5b Consolidate union regressions in the typing snippet youknowdot Oct 12, 2026 https://github.com/RustPython/RustPython/pull/9069/commits/4809c5b4c3aaffbba5e1cc9da31726d3ca742017
Clear filters https://github.com/RustPython/RustPython/pull/9069/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9069/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9069/files
genericalias.rs https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
union.rs https://github.com/RustPython/RustPython/pull/9069/files#diff-87e9c817a54b80d7dba9354e36710817ee399ea28b4941eb0e55155ce0e7b84a
stdlib_genericalias.py https://github.com/RustPython/RustPython/pull/9069/files#diff-c29957b755ca52bef7bbf84523d911d63b56a3361d7e71e3e9aaed5d3fc518cb
stdlib_types.py https://github.com/RustPython/RustPython/pull/9069/files#diff-8cb81e54e60c5d6e8090b934795417ccf54e4eeaa35dd8a830f78068d9ef95a8
stdlib_typing.py https://github.com/RustPython/RustPython/pull/9069/files#diff-3bcd326bf8fcb70e4d274580efdc3081123293489fdf9655353ac35953c689b9
crates/vm/src/builtins/genericalias.rshttps://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
View file https://github.com/youknowdot/RustPython/blob/4809c5b4c3aaffbba5e1cc9da31726d3ca742017/crates/vm/src/builtins/genericalias.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9069/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 12, 2026https://github.com/RustPython/RustPython/pull/9069/files#r4244940846
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/0854bfc38139c0d2b58a9d5d71f5ad92840cf0c17144621e462b474041793354/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50322d79656c6c6f773f7374796c653d666c6174
AGENTS.md:L7-L7https://github.com/RustPython/RustPython/blob/4809c5b4c3aaffbba5e1cc9da31726d3ca742017/AGENTS.md#L7-L7
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9069/files
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 11, 2026https://github.com/RustPython/RustPython/pull/9069/files#r4242210422
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/0854bfc38139c0d2b58a9d5d71f5ad92840cf0c17144621e462b474041793354/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50322d79656c6c6f773f7374796c653d666c6174
AGENTS.md:L7-L7https://github.com/RustPython/RustPython/blob/e92e0321934f05e7c9d48647185bccc233537ab2/AGENTS.md#L7-L7
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9069/files
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 11, 2026https://github.com/RustPython/RustPython/pull/9069/files#r4241939536
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/0854bfc38139c0d2b58a9d5d71f5ad92840cf0c17144621e462b474041793354/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50322d79656c6c6f773f7374796c653d666c6174
AGENTS.md:L7-L7https://github.com/RustPython/RustPython/blob/d0fe038eddaf53a97720fa57176fb9885dfc5723/AGENTS.md#L7-L7
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9069/files
https://github.com/RustPython/RustPython/pull/9069/files#diff-50dce477e053e887853906418f087d26aa04a4310de81dc59413b8af3ad97ee7
crates/vm/src/builtins/union.rshttps://github.com/RustPython/RustPython/pull/9069/files#diff-87e9c817a54b80d7dba9354e36710817ee399ea28b4941eb0e55155ce0e7b84a
View file https://github.com/youknowdot/RustPython/blob/4809c5b4c3aaffbba5e1cc9da31726d3ca742017/crates/vm/src/builtins/union.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9069/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9069/files#diff-87e9c817a54b80d7dba9354e36710817ee399ea28b4941eb0e55155ce0e7b84a
https://github.com/RustPython/RustPython/pull/9069/files#diff-87e9c817a54b80d7dba9354e36710817ee399ea28b4941eb0e55155ce0e7b84a
https://github.com/RustPython/RustPython/pull/9069/files#diff-87e9c817a54b80d7dba9354e36710817ee399ea28b4941eb0e55155ce0e7b84a
https://github.com/RustPython/RustPython/pull/9069/files#diff-87e9c817a54b80d7dba9354e36710817ee399ea28b4941eb0e55155ce0e7b84a
https://github.com/RustPython/RustPython/pull/9069/files#diff-87e9c817a54b80d7dba9354e36710817ee399ea28b4941eb0e55155ce0e7b84a
https://github.com/RustPython/RustPython/pull/9069/files#diff-87e9c817a54b80d7dba9354e36710817ee399ea28b4941eb0e55155ce0e7b84a
https://github.com/RustPython/RustPython/pull/9069/files#diff-87e9c817a54b80d7dba9354e36710817ee399ea28b4941eb0e55155ce0e7b84a
https://github.com/RustPython/RustPython/pull/9069/files#diff-87e9c817a54b80d7dba9354e36710817ee399ea28b4941eb0e55155ce0e7b84a
https://github.com/RustPython/RustPython/pull/9069/files#diff-87e9c817a54b80d7dba9354e36710817ee399ea28b4941eb0e55155ce0e7b84a
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9069/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9069/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.