Conversation
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).
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
|
You need to add it to the VERSIONS file, https://github.com/python/typeshed/blob/master/stdlib/VERSIONS |
(Thanks Jelle...) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
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. :-( |
|
|
|
I suppose we should make stubtest understand the VERSIONS file. |
This comment has been minimized.
This comment has been minimized.
Akuli
left a comment
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.
I believe that should already be fixed in the next version of mypy (python/mypy#12083) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
|
Thanks! |
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).