GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — typing tests: remove some unnecessary uses of `exec()` by AlexWaygood · Pull Request #119005 · python/cpython Conversation
Member
This is a forward-port of python/typing_extensions#219
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the old code here g was the function, now it's the coroutine returned from the function.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good catch. Sorry, that was sloppy.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
| self.assertNotIsInstance(type(g), G) | |
| self.assertNotIsInstance(g, G) |
And of course, it is indeed true that neither a coroutine nor a coroutine function will be an instance of the custom AsyncGenerator subclass
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @AlexWaygood for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
(cherry picked from commit a9328e2) Co-authored-by: Alex Waygood <[email protected]>
(cherry picked from commit a9328e2) Co-authored-by: Alex Waygood <[email protected]>
|
GH-119038 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-119039 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
) (#119038) (cherry picked from commit a9328e2) Co-authored-by: Alex Waygood <[email protected]>
) (#119039) (cherry picked from commit a9328e2) Co-authored-by: Alex Waygood <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.