-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asyncio stubs are missing Python 3.7 and 3.8 methods #2313
Comments
Thanks -- we're dependent on contributors for noticing these things (a systematic search would get unwieldy). Would you mind submitting a PR? |
I have tried but I cannot run
It would be good if typeshed found a way to use tox for these tests? Trying to install something into my global Python installation (even if it’s just I’ll revisit once I can run the tests. |
I suppose we wrote selftest.py mostly for use in Travis; it's fine to not use it for local development. |
I’ve updated the bug with a list of things I found now; since this is massive, it will take more than one PR to fix and I’m not taking any ownership in it. I’ll try to fix the top-level functions ASAP. |
Thanks! Quite a list. |
Hi, I'm reporting here that some more are missing. I've also opened a ticket there python/mypy#6383 |
I think everything in this is completed except for possibly:
|
I know the title says "Python 3.7" but now that we're in the future it feels like this might be an appropriate place to bring up the new 3.8 functionality:
|
All of these are missing from the release notes. 😕 |
Can you report that in bugs.python.org? |
Already reported in issue38460. |
I have updated the original list and will start working on a patch now. |
NICE! Thanks for picking up my slack! |
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_tls()
loop.sock_sendfile()
loop.sendfile()
loop.sock_recv_into()
BufferedProtocol
StreamWriter.wait_closed()
(comment by @srittau: not in documentation or implementation)Task.get_loop()
Future.get_loop()
Server.get_loop()
start_serving
argument forloop.create_server(start_serving)
loop.create_unix_server(start_serving)
Server.start_serving()
Server.serve_forever()
Server.is_serving()
ssl_handshake_timeout
argument forasyncio.open_connection()
asyncio.start_server()
loop.create_connection()
loop.create_server()
loop.create_accepted_socket()
Handle.cancelled()
ReadTransport.is_reading()
But I suspect that everything new in 3.7 isn’t covered at all ATM.
Ref: https://docs.python.org/3/whatsnew/3.7.html#asyncio
Added by @srittau via the report by @Mulugruntz:
asyncio.BaseEventLoop
asyncio.WindowsProactorEventLoopPolicy
asyncio.windows_events
Added by @srittau via the report by @brianjyoung:
New Task methods:
The text was updated successfully, but these errors were encountered: