Title: asyncio stubs are missing Python 3.7 and 3.8 methods · Issue #2313 · python/typeshed · GitHub
Open Graph Title: asyncio stubs are missing Python 3.7 and 3.8 methods · Issue #2313 · python/typeshed
X Title: asyncio stubs are missing Python 3.7 and 3.8 methods · Issue #2313 · python/typeshed
Description: I’ve tried to migrate a code base to 3.7 and noticed that the asyncio stubs need some love. The ones I’ve noticed are: asyncio.create_task() asyncio.run() asyncio.current_task() asyncio.all_tasks() asyncio.get_running_loop() loop.start_t...
Open Graph Description: I’ve tried to migrate a code base to 3.7 and noticed that the asyncio stubs need some love. The ones I’ve noticed are: asyncio.create_task() asyncio.run() asyncio.current_task() asyncio.all_tasks()...
X Description: I’ve tried to migrate a code base to 3.7 and noticed that the asyncio stubs need some love. The ones I’ve noticed are: asyncio.create_task() asyncio.run() asyncio.current_task() asyncio.all_tasks()...
Opengraph URL: https://github.com/python/typeshed/issues/2313
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"asyncio stubs are missing Python 3.7 and 3.8 methods","articleBody":"I’ve tried to migrate a code base to 3.7 and noticed that the asyncio stubs need some love.\r\n\r\nThe ones I’ve noticed are:\r\n\r\n- [x] `asyncio.create_task()`\r\n- [x] `asyncio.run()`\r\n- [x] `asyncio.current_task()`\r\n- [x] `asyncio.all_tasks()`\r\n- [x] `asyncio.get_running_loop()`\r\n- [x] `loop.start_tls()`\r\n- [x] `loop.sock_sendfile()`\r\n- [x] `loop.sendfile()`\r\n- [x] `loop.sock_recv_into()`\r\n- [x] `BufferedProtocol`\r\n- [x] `StreamWriter.wait_closed()`\r\n- [ ] ~~`Task.get_loop()`~~ *(comment by @srittau: not in documentation or implementation)*\r\n- [x] `Future.get_loop()`\r\n- [x] `Server.get_loop()`\r\n- [x] `start_serving` argument for\r\n - `loop.create_server(start_serving)`\r\n - `loop.create_unix_server(start_serving)`\r\n- [x] `Server.start_serving()`\r\n- [x] `Server.serve_forever()`\r\n- [x] `Server.is_serving()`\r\n- [ ] `ssl_handshake_timeout` argument for\r\n - [ ] `asyncio.open_connection()`\r\n - [ ] `asyncio.start_server()`\r\n - [x] `loop.create_connection()`\r\n - [x] `loop.create_server()`\r\n - [x] `loop.create_accepted_socket()`\r\n- [x] `Handle.cancelled()`\r\n- [x] `ReadTransport.is_reading()`\r\n- [ ] “Loop methods which accept socket paths now support passing path-like objects. ” – that sounds like changes throughout the module?\r\n\r\nBut I suspect that everything new in 3.7 isn’t covered at all ATM.\r\n\r\nRef: https://docs.python.org/3/whatsnew/3.7.html#asyncio\r\n\r\n*Added by @srittau via the report by @Mulugruntz:*\r\n\r\n- [x] `asyncio.BaseEventLoop`\r\n- [ ] `asyncio.WindowsProactorEventLoopPolicy`\r\n- [x] `asyncio.windows_events`\r\n\r\n*Added by @srittau via the report by @brianjyoung:*\r\n\r\n- [ ] loop.create_task() now accepts a name\r\n- [ ] loop.create_connection() supports happy_eyeballs_delay and interleave\r\nNew Task methods:\r\n- [ ] get_coro()\r\n- [ ] get_name()\r\n- [ ] set_name()","author":{"url":"https://github.com/hynek","@type":"Person","name":"hynek"},"datePublished":"2018-07-06T15:25:37Z","url":"https://github.com/python/typeshed/issues/2313"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:447ebd87-bbdd-a953-5858-b53f3ff12571 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3B4:3E1398:D15902:118E33D:6B0052A0 |
| html-safe-nonce | b1145470c6393d4472ba8af3673f7696d66e68676a315695bd30ff05bd74bdd1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0I0OjNFMTM5ODpEMTU5MDI6MTE4RTMzRDo2QjAwNTJBMCIsInZpc2l0b3JfaWQiOiIyNTE4NTkxMzk4NTE3NjkxMDQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5d2320d96522950e2fbc55ac7f9e978675adc23b30bead6f971cf52f2f508f0a |
| hovercard-subject-tag | issue:338979995 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/typeshed/2313/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c18c02ba930e944388aecf0603f9177ee17817a37645935303e57bf73ca6a32/python/typeshed/issues/2313 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c18c02ba930e944388aecf0603f9177ee17817a37645935303e57bf73ca6a32/python/typeshed/issues/2313 |
| og:image:alt | I’ve tried to migrate a code base to 3.7 and noticed that the asyncio stubs need some love. The ones I’ve noticed are: asyncio.create_task() asyncio.run() asyncio.current_task() asyncio.all_tasks()... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hynek |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width