René's URL Explorer Experiment


Title: Change `create_task` type by sobolevn · Pull Request #6779 · python/typeshed · GitHub

Open Graph Title: Change `create_task` type by sobolevn · Pull Request #6779 · python/typeshed

X Title: Change `create_task` type by sobolevn · Pull Request #6779 · python/typeshed

Description: I've manually tested that Awaitables are not supported: import asyncio class My: def __await__(self): async def inner(): print('here') return inner async def main(): await asyncio.create_task(My()) asyncio.run(main()) Output: Traceback (most recent call last): File "/Users/sobolev/Desktop/cpython/build/ex.py", line 15, in asyncio.run(main()) File "/Users/sobolev/.pyenv/versions/3.9.9/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/Users/sobolev/.pyenv/versions/3.9.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/Users/sobolev/Desktop/cpython/build/ex.py", line 13, in main await asyncio.create_task(My()) File "/Users/sobolev/.pyenv/versions/3.9.9/lib/python3.9/asyncio/tasks.py", line 361, in create_task task = loop.create_task(coro) File "/Users/sobolev/.pyenv/versions/3.9.9/lib/python3.9/asyncio/base_events.py", line 433, in create_task task = tasks.Task(coro, loop=self, name=name) TypeError: a coroutine was expected, got <__main__.My object at 0x10c38fe20> But, Generator objects are also supported: import asyncio def gen(): i = yield print(1, i) # prints: `1 None` async def main(): await asyncio.create_task(gen()) asyncio.run(main()) Closes #6770

Open Graph Description: I've manually tested that Awaitables are not supported: import asyncio class My: def __await__(self): async def inner(): print('here') return inner asy...

X Description: I&#39;ve manually tested that Awaitables are not supported: import asyncio class My: def __await__(self): async def inner(): print(&#39;here&#39;) retur...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files/:range(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c77e9f60-774d-4e53-49ef-245c435cb98d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8AB4:14D19C:2F4A4BE:3E54CB2:69955D22
html-safe-noncef29c31c8f1d54bfe0047507c1ea81a28f12e7a19ab7fa6c02bb1684a8645e060
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUI0OjE0RDE5QzoyRjRBNEJFOjNFNTRDQjI6Njk5NTVEMjIiLCJ2aXNpdG9yX2lkIjoiNjI2NjgxNzk2MDUzMjU5ODA1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdfa8339d840a334979f4a28cf8b113f708c695ba6f96607f894f742861faff96
hovercard-subject-tagpull_request:812706246
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/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
twitter:imagehttps://avatars.githubusercontent.com/u/4660275?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4660275?s=400&v=4
og:image:altI've manually tested that Awaitables are not supported: import asyncio class My: def __await__(self): async def inner(): print('here') return inner asy...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4bd759bc5f83244e2a0de29b937365905c0fefd238b6f077c24a49830375b4df
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecac7d4a5a6053f6655d0c3e8bfe5fd7a55c216fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F6779%2Ffiles%2F7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F6779%2Ffiles%2F7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
Reloadhttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
Reloadhttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
python https://github.com/python
typeshedhttps://github.com/python/typeshed
Please reload this pagehttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
Notifications https://github.com/login?return_to=%2Fpython%2Ftypeshed
Fork 2k https://github.com/login?return_to=%2Fpython%2Ftypeshed
Star 5k https://github.com/login?return_to=%2Fpython%2Ftypeshed
Code https://github.com/python/typeshed
Issues 213 https://github.com/python/typeshed/issues
Pull requests 139 https://github.com/python/typeshed/pulls
Actions https://github.com/python/typeshed/actions
Projects 0 https://github.com/python/typeshed/projects
Security 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
Projects https://github.com/python/typeshed/projects
Security https://github.com/python/typeshed/security
Insights https://github.com/python/typeshed/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
srittauhttps://github.com/srittau
python:masterhttps://github.com/python/typeshed/tree/master
Conversation 22 https://github.com/python/typeshed/pull/6779
Commits 3 https://github.com/python/typeshed/pull/6779/commits
Checks 0 https://github.com/python/typeshed/pull/6779/checks
Files changed https://github.com/python/typeshed/pull/6779/files
Please reload this pagehttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
Change create_task type https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#top
Show all changes 3 commits https://github.com/python/typeshed/pull/6779/files
ce4003a Change `create_task` type, refs #6770 sobolevn Jan 2, 2022 https://github.com/python/typeshed/pull/6779/commits/ce4003a755cbfbae127a2cd8398dbf735e721d28
7b0c8f5 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Jan 2, 2022 https://github.com/python/typeshed/pull/6779/commits/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
b1d9daf Merge branch 'master' into issue-6770 sobolevn Feb 2, 2022 https://github.com/python/typeshed/pull/6779/commits/b1d9daf2760ea05e5a91eac19fbe0af67f2869c6
Clear filters https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
Please reload this pagehttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
Please reload this pagehttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
base_events.pyi https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4886af916d5482ca50a0cfea90fe0d403cc5a98e1087598a14d12c9370cfb6b4
events.pyi https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4b14108fad123dae909a70d136a4f222c891dc5022a3c655d3aa695fdfceac67
tasks.pyi https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-1c7d4edfb5db9dace7e2a4d54a30de2a104bbf3dbac5a6ca06afbae2c9fda58b
stdlib/asyncio/base_events.pyihttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4886af916d5482ca50a0cfea90fe0d403cc5a98e1087598a14d12c9370cfb6b4
View file https://github.com/python/typeshed/blob/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b/stdlib/asyncio/base_events.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/6779/files/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4886af916d5482ca50a0cfea90fe0d403cc5a98e1087598a14d12c9370cfb6b4
srittauhttps://github.com/srittau
Feb 2, 2022https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#r797559795
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4886af916d5482ca50a0cfea90fe0d403cc5a98e1087598a14d12c9370cfb6b4
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4886af916d5482ca50a0cfea90fe0d403cc5a98e1087598a14d12c9370cfb6b4
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4886af916d5482ca50a0cfea90fe0d403cc5a98e1087598a14d12c9370cfb6b4
stdlib/asyncio/events.pyihttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4b14108fad123dae909a70d136a4f222c891dc5022a3c655d3aa695fdfceac67
View file https://github.com/python/typeshed/blob/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b/stdlib/asyncio/events.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/6779/files/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4b14108fad123dae909a70d136a4f222c891dc5022a3c655d3aa695fdfceac67
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4b14108fad123dae909a70d136a4f222c891dc5022a3c655d3aa695fdfceac67
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4b14108fad123dae909a70d136a4f222c891dc5022a3c655d3aa695fdfceac67
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-4b14108fad123dae909a70d136a4f222c891dc5022a3c655d3aa695fdfceac67
stdlib/asyncio/tasks.pyihttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-1c7d4edfb5db9dace7e2a4d54a30de2a104bbf3dbac5a6ca06afbae2c9fda58b
View file https://github.com/python/typeshed/blob/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b/stdlib/asyncio/tasks.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/6779/files/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-1c7d4edfb5db9dace7e2a4d54a30de2a104bbf3dbac5a6ca06afbae2c9fda58b
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-1c7d4edfb5db9dace7e2a4d54a30de2a104bbf3dbac5a6ca06afbae2c9fda58b
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-1c7d4edfb5db9dace7e2a4d54a30de2a104bbf3dbac5a6ca06afbae2c9fda58b
sobolevnhttps://github.com/sobolevn
Jan 2, 2022https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#r777187749
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
Akulihttps://github.com/Akuli
Jan 2, 2022https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#r777188923
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
sobolevnhttps://github.com/sobolevn
Jan 2, 2022https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#r777189641
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b
https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b#diff-1c7d4edfb5db9dace7e2a4d54a30de2a104bbf3dbac5a6ca06afbae2c9fda58b
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.