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
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've manually tested that Awaitables are not supported: import asyncio class My: def __await__(self): async def inner(): print('here') retur...
Opengraph URL: https://github.com/python/typeshed/pull/6779
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files/:range(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c77e9f60-774d-4e53-49ef-245c435cb98d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8AB4:14D19C:2F4A4BE:3E54CB2:69955D22 |
| html-safe-nonce | f29c31c8f1d54bfe0047507c1ea81a28f12e7a19ab7fa6c02bb1684a8645e060 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUI0OjE0RDE5QzoyRjRBNEJFOjNFNTRDQjI6Njk5NTVEMjIiLCJ2aXNpdG9yX2lkIjoiNjI2NjgxNzk2MDUzMjU5ODA1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dfa8339d840a334979f4a28cf8b113f708c695ba6f96607f894f742861faff96 |
| hovercard-subject-tag | pull_request:812706246 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/typeshed/pull/6779/files/7b0c8f5ffbec0b0d91c8d88af6c394cbeaacae2b |
| twitter:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| og:image:alt | I'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_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4bd759bc5f83244e2a0de29b937365905c0fefd238b6f077c24a49830375b4df |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cac7d4a5a6053f6655d0c3e8bfe5fd7a55c216fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width