René's URL Explorer Experiment


Title: `types.GeneratorType.gi_frame` should be `FrameType | None` · Issue #15218 · python/typeshed · GitHub

Open Graph Title: `types.GeneratorType.gi_frame` should be `FrameType | None` · Issue #15218 · python/typeshed

X Title: `types.GeneratorType.gi_frame` should be `FrameType | None` · Issue #15218 · python/typeshed

Description: typeshed/stdlib/types.pyi Lines 402 to 403 in 7fde970 @property def gi_frame(self) -> FrameType: ... This issue is similar to #14780. The gi_frame property becomes None when the generator iterator completes: >>> def generator_function():...

Open Graph Description: typeshed/stdlib/types.pyi Lines 402 to 403 in 7fde970 @property def gi_frame(self) -> FrameType: ... This issue is similar to #14780. The gi_frame property becomes None when the generator iterator ...

X Description: typeshed/stdlib/types.pyi Lines 402 to 403 in 7fde970 @property def gi_frame(self) -> FrameType: ... This issue is similar to #14780. The gi_frame property becomes None when the generator iterat...

Opengraph URL: https://github.com/python/typeshed/issues/15218

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`types.GeneratorType.gi_frame` should be `FrameType | None`","articleBody":"https://github.com/python/typeshed/blob/7fde97036f692b269cbb82ae5fd6c933064000c8/stdlib/types.pyi#L402-L403\n\nThis issue is similar to #14780. The `gi_frame` property becomes `None` when the generator iterator completes:\n\n```python\n\u003e\u003e\u003e def generator_function():\n...     return\n...     yield\n\u003e\u003e\u003e gen = generator_function()\n\u003e\u003e\u003e gen.gi_frame\n\u003cframe at 0x7f2ebe641620, file '\u003cstdin\u003e', line 1, code generator_function\u003e\n\u003e\u003e\u003e next(gen)  # consume\nTraceback (most recent call last):\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\nStopIteration\n\u003e\u003e\u003e gen.gi_frame is None\nTrue\n```\n\nThe same applies to `AsyncGeneratorType.ag_frame`:\n\n```python\n\u003e\u003e\u003e async def asyncgen_function():\n...     return\n...     yield\n\u003e\u003e\u003e asyncgen = asyncgen_function()\n\u003e\u003e\u003e asyncgen.ag_frame\n\u003cframe at 0x7f37cf7d5c60, file '\u003cstdin\u003e', line 1, code asyncgen_function\u003e\n\u003e\u003e\u003e [*asyncgen.asend(None).__await__()]  # consume\nTraceback (most recent call last):\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\nStopAsyncIteration\n\u003e\u003e\u003e asyncgen.ag_frame is None\nTrue\n```\n\nNotably, this was mentioned in both the linked issue and python/cpython#112428 (Python 3.12.1), to which it refers, but was ignored in the PR (#14802), meaning the issue was closed prematurely (why?). Moreover, none of the `*_frame` properties actually depend on the Python version. 3.12.0 introduced a regression, as mentioned in python/cpython#111058. The above examples (and a similar one for coroutine objects) can be easily reproduced even on Python 3.6:\n\n```python\nPython 3.6.15 (default, Apr 25 2022, 01:55:53) \n[GCC 9.4.0] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e async def coroutine_function():\n...     pass\n\u003e\u003e\u003e coro = coroutine_function()\n\u003e\u003e\u003e coro.cr_frame\n\u003cframe object at 0x7fe26e728a08\u003e\n\u003e\u003e\u003e coro.send(None)  # consume\nTraceback (most recent call last):\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\nStopIteration\n\u003e\u003e\u003e coro.cr_frame is None\nTrue\n```","author":{"url":"https://github.com/x42005e1f","@type":"Person","name":"x42005e1f"},"datePublished":"2026-01-05T10:13:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/15218/typeshed/issues/15218"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0a0b0f77-12c1-1a4a-0464-6f2dbd1832e1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE176:B2B1:D7731F:125AE11:6A63BE20
html-safe-noncefc7a6a0245bd566934acc194b35686a5b1570b0c84b1022751757537b1e1e2f2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTc2OkIyQjE6RDc3MzFGOjEyNUFFMTE6NkE2M0JFMjAiLCJ2aXNpdG9yX2lkIjoiNTM1OTg4MjIwODA3NzM5NzUzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac644656161f2158fa20aa90f65d2232bed0c49124b80a81a84f2e8a5be16d75ab
hovercard-subject-tagissue:3780935529
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typeshed/15218/issue_layout
twitter:imagehttps://opengraph.githubassets.com/68989ce4285babe4bad7107e3e4fa30b0997fe0024d73461b7b6b8beff1cbbe7/python/typeshed/issues/15218
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/68989ce4285babe4bad7107e3e4fa30b0997fe0024d73461b7b6b8beff1cbbe7/python/typeshed/issues/15218
og:image:alttypeshed/stdlib/types.pyi Lines 402 to 403 in 7fde970 @property def gi_frame(self) -> FrameType: ... This issue is similar to #14780. The gi_frame property becomes None when the generator iterator ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamex42005e1f
hostnamegithub.com
expected-hostnamegithub.com
None4c1c4f1792dfc705b5a5073fed6c61988f59766cec1277f24f55d4b876f9881c
turbo-cache-controlno-preview
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefefaad6f0be5c33f57f42bb65ed668f74c872364
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typeshed/issues/15218#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F15218
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F15218
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/issues/15218
Reloadhttps://github.com/python/typeshed/issues/15218
Reloadhttps://github.com/python/typeshed/issues/15218
Please reload this pagehttps://github.com/python/typeshed/issues/15218
python https://github.com/python
typeshedhttps://github.com/python/typeshed
Please reload this pagehttps://github.com/python/typeshed/issues/15218
Notifications https://github.com/login?return_to=%2Fpython%2Ftypeshed
Fork 2.1k https://github.com/login?return_to=%2Fpython%2Ftypeshed
Star 5.1k https://github.com/login?return_to=%2Fpython%2Ftypeshed
Code https://github.com/python/typeshed
Issues 217 https://github.com/python/typeshed/issues
Pull requests 138 https://github.com/python/typeshed/pulls
Actions https://github.com/python/typeshed/actions
Security and quality 0 https://github.com/python/typeshed/security
Insights https://github.com/python/typeshed/pulse
Code https://github.com/python/typeshed
Issues https://github.com/python/typeshed/issues
Pull requests https://github.com/python/typeshed/pulls
Actions https://github.com/python/typeshed/actions
Security and quality https://github.com/python/typeshed/security
Insights https://github.com/python/typeshed/pulse
#15219https://github.com/python/typeshed/pull/15219
types.GeneratorType.gi_frame should be FrameType | Nonehttps://github.com/python/typeshed/issues/15218#top
#15219https://github.com/python/typeshed/pull/15219
https://github.com/x42005e1f
x42005e1fhttps://github.com/x42005e1f
on Jan 5, 2026https://github.com/python/typeshed/issues/15218#issue-3780935529
typeshed/stdlib/types.pyihttps://github.com/python/typeshed/blob/7fde97036f692b269cbb82ae5fd6c933064000c8/stdlib/types.pyi#L402-L403
7fde970https://github.com/python/typeshed/commit/7fde97036f692b269cbb82ae5fd6c933064000c8
#14780https://github.com/python/typeshed/issues/14780
python/cpython#112428https://github.com/python/cpython/pull/112428
#14802https://github.com/python/typeshed/pull/14802
python/cpython#111058https://github.com/python/cpython/issues/111058
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.