| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The new Task methods are .cancelling() and .uncancel(). Everything is conditional to 3.11 (but the taskgroups.py module always exists -- it's just empty before 3.11).
|
Question for other typeshed maintainers. How do we handle modules that were added in a certain release? I am getting errors from the linters that seem to be complaining about this. |
Sorry, something went wrong.
|
You need to add it to the VERSIONS file, https://github.com/python/typeshed/blob/master/stdlib/VERSIONS |
Sorry, something went wrong.
(Thanks Jelle...) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
These test failures are excruciating if you haven't been following developments here. :-) I now get "error: asyncio.taskgroups failed to find stubs" e.g. https://github.com/python/typeshed/runs/5222298476?check_suite_focus=true I'm not sure what it's telling me I have to do. :-( |
Sorry, something went wrong.
|
stubtest is a tool that imports the module and compares it to stubs. Because asyncio.taskgroups can't actually be imported before 3.11, you need to suppress the error by adding a line asyncio.taskgroups to py36.txt, py37.txt etc in tests/stubtest_allowlists/. |
Sorry, something went wrong.
|
I suppose we should make stubtest understand the VERSIONS file. |
Sorry, something went wrong.
There was a problem hiding this comment.
A few comments below. Unfortunately our CI isn't very helpful, because we don't run the tests on Python 3.11 yet.
Sorry, something went wrong.
I believe that should already be fixed in the next version of mypy (python/mypy#12083) |
Sorry, something went wrong.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Sorry, something went wrong.
|
Thanks! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The new Task methods are .cancelling() and .uncancel().
Everything is conditional to 3.11 (but the taskgroups.py module
always exists -- it's just empty before 3.11).