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 — bpo-38605: Revert making 'from __future__ import annotations' the default by pablogsal · Pull Request #25490 · python/cpython Conversation
|
|
Hi @pablogsal, you may also want to revert my previous PR #25236 for this. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Could you give a little bit context to explain the revert? I guess that it's related to the many threads on python-dev about it? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Is explained in the NEWs entry. I plan to explain it also on the final commit :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…lways enabled (pythonGH-25236)" This reverts commit 1be456a.
|
Oh ok, thanks. Copy of the NEWS entry: Revert making 'from future import annotations' the default. This follows |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@pablogsal also please bump the magic number (cached pycs might cause some issues) (it wasn't done in the initial PR, but rather get picked up on #22630) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
We should be able to go back a version, I think. Cached pycs for alpha versions should not take lots of consideration |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Crap, there has been quite a lot of changes since then. Ok, bumping it is! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Done in ef38777a1f |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ef38777 to
f70048d
Compare
|
Oops sorry, I wanted to remove my comment rather posting it, but I closed the PR instead... I reopened the PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
We can also update the doc of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Are you taking #23316 into consideration? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes. And I know understand why this assrtion passes. Annotation is tuple even when PEP 563 is disabled. That's nice. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ce789a0 to
51a6f52
Compare
|
🤖 New build scheduled with the buildbot fleet by @pablogsal for commit 51a6f52234cf416f33a8f8ce625502dedd2bf0fd 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…05.9eeCNZ.rst Co-authored-by: Inada Naoki <[email protected]>
51a6f52 to
b6a88ed
Compare
|
I still would like if someone can formally approve the PR :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I have not reviewed tests yet. In other parts, LGTM.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM but please address first the comment in Lib/test/test_dataclasses.py (I concur that it looks a revert of a bugfix, so it reintroduces a typo).
I suggest to first revert the change, and then write a second PR to announce that annotations are going to change again (in Python 3.11 or later).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
@vstinner What do you mean when you say "announce"? Announce where? In the What's new? A news entry? python-dev?
Notice that this was certainly not a clean revert |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Add a What's New in Python 3.10 entry to explain that the behavior changed but was then revert, and that it will change again in a future Python version. Something like this announcement of future collections incompatible changes (collections.Mapping alias): This announce was correct: the aliases were removed again in Python 3.10.
Any additional communication would be good, but the minimum would be a note in the What's New in Python 3.10. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
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.