René's URL Explorer Experiment


Title: `inspect`, `asyncio`: Use more `TypeGuard`s by AlexWaygood · Pull Request #8057 · python/typeshed · GitHub

Open Graph Title: `inspect`, `asyncio`: Use more `TypeGuard`s by AlexWaygood · Pull Request #8057 · python/typeshed

X Title: `inspect`, `asyncio`: Use more `TypeGuard`s by AlexWaygood · Pull Request #8057 · python/typeshed

Description: Collection of library stubs for Python, with static types - `inspect`, `asyncio`: Use more `TypeGuard`s by AlexWaygood · Pull Request #8057 · python/typeshed

Open Graph Description: Fixes #8009.

X Description: Fixes #8009.

Opengraph URL: https://github.com/python/typeshed/pull/8057

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0839bfbf-10b5-6cf4-2871-f7dbed295216
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD25C:2355D4:33DE2F:43D45B:6A6162F3
html-safe-nonce95306a3262275c6e3f82275d14cacab447f31a4ca2bf29b84095bb9f32a33ec5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjVDOjIzNTVENDozM0RFMkY6NDNENDVCOjZBNjE2MkYzIiwidmlzaXRvcl9pZCI6Ijc4NDUwNTE0MTkxMzc3NjIwMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3afa6a8b0e6add2c319fcbac96d54a4933449fb09f34507ad8c861e5a1e3ea05
hovercard-subject-tagpull_request:964791087
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/typeshed/8057/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/17d666a69044da84d6ad6c4db3f1c42059630e0012d31636ac86c402d54e16f4/python/typeshed/pull/8057
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/17d666a69044da84d6ad6c4db3f1c42059630e0012d31636ac86c402d54e16f4/python/typeshed/pull/8057
og:image:altFixes #8009.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlexWaygood
hostnamegithub.com
expected-hostnamegithub.com
Nonec258d2b06b498220e3b94af28b26bbbf58f4203a6373725f779afcc867afd263
turbo-cache-controlno-cache
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
release5f67bc431418961e0814f1eb30a4231250e4726d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typeshed/pull/8057#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F8057
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%2Fpull%2F8057
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/pull/8057
Reloadhttps://github.com/python/typeshed/pull/8057
Reloadhttps://github.com/python/typeshed/pull/8057
Please reload this pagehttps://github.com/python/typeshed/pull/8057
python https://github.com/python
typeshedhttps://github.com/python/typeshed
Please reload this pagehttps://github.com/python/typeshed/pull/8057
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 219 https://github.com/python/typeshed/issues
Pull requests 146 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
JelleZijlstrahttps://github.com/JelleZijlstra
python:masterhttps://github.com/python/typeshed/tree/master
AlexWaygood:iscoroutinefunctionhttps://github.com/AlexWaygood/typeshed/tree/iscoroutinefunction
Conversationhttps://github.com/python/typeshed/pull/8057
Commits8 (8)https://github.com/python/typeshed/pull/8057/commits
Checkshttps://github.com/python/typeshed/pull/8057/checks
Files changedhttps://github.com/python/typeshed/pull/8057/files
inspect, asyncio: Use more TypeGuardshttps://github.com/python/typeshed/pull/8057#top
JelleZijlstrahttps://github.com/JelleZijlstra
python:masterhttps://github.com/python/typeshed/tree/master
AlexWaygood:iscoroutinefunctionhttps://github.com/AlexWaygood/typeshed/tree/iscoroutinefunction
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jun 11, 2022https://github.com/python/typeshed/pull/8057#issue-1268310636
Please reload this pagehttps://github.com/python/typeshed/pull/8057
#8009https://github.com/python/typeshed/issues/8009
Please reload this pagehttps://github.com/python/typeshed/pull/8057
AlexWaygoodhttps://github.com/AlexWaygood
June 11, 2022 16:54https://github.com/python/typeshed/pull/8057#commits-pushed-2c720ab
https://github.com/AlexWaygood
inspect, asyncio: Use more TypeGuardshttps://github.com/python/typeshed/pull/8057/commits/2c720aba64ae69b45209350d07946eccda6af2f8
2c720abhttps://github.com/python/typeshed/pull/8057/commits/2c720aba64ae69b45209350d07946eccda6af2f8
https://github.com/AlexWaygood
Fix linthttps://github.com/python/typeshed/pull/8057/commits/0f74cd342f8cf90cf79ed76c6320611c36bad00a
0f74cd3https://github.com/python/typeshed/pull/8057/commits/0f74cd342f8cf90cf79ed76c6320611c36bad00a
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F8057
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F8057
https://github.com/AlexWaygood
Experimenthttps://github.com/python/typeshed/pull/8057/commits/14301c5d0c9332480ef3cb93dd61f1619ac3fb00
14301c5https://github.com/python/typeshed/pull/8057/commits/14301c5d0c9332480ef3cb93dd61f1619ac3fb00
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F8057
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
June 12, 2022 11:50https://github.com/python/typeshed/pull/8057#event-6791333939
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
June 12, 2022 11:54https://github.com/python/typeshed/pull/8057#event-6791338684
AlexWaygoodhttps://github.com/AlexWaygood
June 12, 2022 13:14https://github.com/python/typeshed/pull/8057#commits-pushed-6c37648
https://github.com/AlexWaygood
More experiment (and tests)https://github.com/python/typeshed/pull/8057/commits/6c37648825115f3998df73f356be1172f169e6c2
6c37648https://github.com/python/typeshed/pull/8057/commits/6c37648825115f3998df73f356be1172f169e6c2
https://github.com/AlexWaygood
Use old syntaxhttps://github.com/python/typeshed/pull/8057/commits/6b5e903872f02298780125e4b7eb320dc6e0f1cd
6b5e903https://github.com/python/typeshed/pull/8057/commits/6b5e903872f02298780125e4b7eb320dc6e0f1cd
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F8057
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F8057
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jun 12, 2022https://github.com/python/typeshed/pull/8057#issuecomment-1153149406
@erictrauthttps://github.com/erictraut
Please reload this pagehttps://github.com/python/typeshed/pull/8057
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jun 12, 2022https://github.com/python/typeshed/pull/8057#issuecomment-1153151408
Please reload this pagehttps://github.com/python/typeshed/pull/8057
https://github.com/Rapptz/discord.py/blob/334ef1d7facce9dbfba2a6924bf57fc59bc827b5/discord/ext/tasks/__init__.py#L598-L622https://github.com/Rapptz/discord.py/blob/334ef1d7facce9dbfba2a6924bf57fc59bc827b5/discord/ext/tasks/__init__.py#L598-L622
https://github.com/aio-libs/aiohttp/blob/3a41da05bcb1edde9f6f878d9092e108e70dff2a/aiohttp/helpers.py#L122-L129https://github.com/aio-libs/aiohttp/blob/3a41da05bcb1edde9f6f878d9092e108e70dff2a/aiohttp/helpers.py#L122-L129
https://github.com/joerick/pyinstrument/blob/b833b3f4a6b039354ed8bb747371d5f0d539010c/pyinstrument/vendor/decorator.py#L62-L67https://github.com/joerick/pyinstrument/blob/b833b3f4a6b039354ed8bb747371d5f0d539010c/pyinstrument/vendor/decorator.py#L62-L67
Please reload this pagehttps://github.com/python/typeshed/pull/8057
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
June 12, 2022 12:33https://github.com/python/typeshed/pull/8057#event-6791381039
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jun 12, 2022 https://github.com/python/typeshed/pull/8057#ref-issue-1256762216
Should asyncio.iscoroutinefunction return some kind of TypeGuard? #8009 https://github.com/python/typeshed/issues/8009
https://github.com/erictraut
erictrauthttps://github.com/erictraut
Jun 13, 2022 https://github.com/python/typeshed/pull/8057#ref-issue-1269700741
Add support for TypeGuard type narrowing pattern when called function is overloaded microsoft/pyright#3572 https://github.com/microsoft/pyright/issues/3572
https://github.com/erictraut
erictrauthttps://github.com/erictraut
Jun 13, 2022https://github.com/python/typeshed/pull/8057#issuecomment-1154151928
@AlexWaygoodhttps://github.com/AlexWaygood
this feature enhancement requesthttps://github.com/microsoft/pyright/issues/3572
Please reload this pagehttps://github.com/python/typeshed/pull/8057
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
status: deferred https://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22status%3A%20deferred%22
Jun 13, 2022https://github.com/python/typeshed/pull/8057#event-6798887668
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jun 13, 2022https://github.com/python/typeshed/pull/8057#issuecomment-1154494302
Please reload this pagehttps://github.com/python/typeshed/pull/8057
this feature enhancement requesthttps://github.com/microsoft/pyright/issues/3572
@erictrauthttps://github.com/erictraut
Please reload this pagehttps://github.com/python/typeshed/pull/8057
https://github.com/erictraut
erictrauthttps://github.com/erictraut
Jun 20, 2022https://github.com/python/typeshed/pull/8057#issuecomment-1160125092
Please reload this pagehttps://github.com/python/typeshed/pull/8057
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jun 20, 2022 https://github.com/python/typeshed/pull/8057#ref-pullrequest-1277130928
Upgrade pyright #8110 https://github.com/python/typeshed/pull/8110
https://github.com/AlexWaygood
Merge branch 'master' into iscoroutinefunctionhttps://github.com/python/typeshed/pull/8057/commits/eeacfa76a6548c08c25dcfa00e7ab7d839986461
eeacfa7https://github.com/python/typeshed/pull/8057/commits/eeacfa76a6548c08c25dcfa00e7ab7d839986461
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
status: deferred https://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22status%3A%20deferred%22
Jun 20, 2022https://github.com/python/typeshed/pull/8057#event-6840757248
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F8057
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jun 20, 2022https://github.com/python/typeshed/pull/8057#issuecomment-1160637956
Please reload this pagehttps://github.com/python/typeshed/pull/8057
#8057 (comment)https://github.com/python/typeshed/pull/8057#issuecomment-1153151408
Please reload this pagehttps://github.com/python/typeshed/pull/8057
https://github.com/AlexWaygood
Merge branch 'master' into iscoroutinefunctionhttps://github.com/python/typeshed/pull/8057/commits/e7381f73475d44a412862c5e06491266963ee863
e7381f7https://github.com/python/typeshed/pull/8057/commits/e7381f73475d44a412862c5e06491266963ee863
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F8057
https://github.com/AlexWaygood
Merge branch 'master' into iscoroutinefunctionhttps://github.com/python/typeshed/pull/8057/commits/3aa62dd912ff655df9c872b0d0141c9c68cce1c2
3aa62ddhttps://github.com/python/typeshed/pull/8057/commits/3aa62dd912ff655df9c872b0d0141c9c68cce1c2
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jul 11, 2022https://github.com/python/typeshed/pull/8057#issuecomment-1180381748
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/typeshed/pull/8057
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Jul 19, 2022 https://github.com/python/typeshed/pull/8057#pullrequestreview-1042755389
View reviewed changes https://github.com/python/typeshed/pull/8057/files/3aa62dd912ff655df9c872b0d0141c9c68cce1c2
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
e156c63https://github.com/python/typeshed/commit/e156c63bdb93fbbc5afa0c77982489204e770eb6
Jul 19, 2022https://github.com/python/typeshed/pull/8057#event-7016963341
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
July 19, 2022 07:06https://github.com/python/typeshed/pull/8057#event-7017990561
https://github.com/DMRobertson
DMRobertsonhttps://github.com/DMRobertson
Jul 19, 2022 https://github.com/python/typeshed/pull/8057#ref-pullrequest-1309685043
Add type annotations to trace decorator matrix-org/synapse#13328 https://github.com/matrix-org/synapse/pull/13328
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jul 27, 2022 https://github.com/python/typeshed/pull/8057#ref-pullrequest-1320019381
Sync typeshed python/mypy#13252 https://github.com/python/mypy/pull/13252
https://github.com/x42005e1f
x42005e1fhttps://github.com/x42005e1f
Jan 16, 2026 https://github.com/python/typeshed/pull/8057#ref-issue-3823257133
inspect.is*function() overloads do not match the runtime behavior #15293 https://github.com/python/typeshed/issues/15293
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F8057
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
https://github.com/python/typeshed/pull/8057/files/3aa62dd912ff655df9c872b0d0141c9c68cce1c2
Should asyncio.iscoroutinefunction return some kind of TypeGuard? https://github.com/python/typeshed/issues/8009
Please reload this pagehttps://github.com/python/typeshed/pull/8057
https://github.com/AlexWaygood
https://github.com/erictraut
https://github.com/JelleZijlstra
https://github.com/hauntsaninja
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.