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 — [3.12] gh-119698: fix a special case in `symtable.Class.get_methods` (GH-121802) by miss-islington · Pull Request #121910 · python/cpython Conversation
|
|
Oh: type x[genexpr = (x async for x in [])] = (x async for x in []) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='? Is it expected? did something change between 3.12 and 3.13 for this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Oh yeah, I made comprehensions in annotation scopes a syntax error in 3.12, but then added support in 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
And also, the tests were using TypeVar defaults, which only exist in 3.13. I removed the tests that rely on comprehensions within annotation scopes within classes, because that was a SyntaxError in 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.