Uh oh!
There was an error while loading. Please reload this page.
bpo-38605: Revert making 'from __future__ import annotations' the default - #25490
Conversation
…ault This reverts commit 044a104, adapting the code to changes that happened after it.
f267ef4 to
1e024afComparegousaiyang
commented
Apr 20, 2021
Hi @pablogsal, you may also want to revert my previous PR #25236 for this. |
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? |
pablogsal
commented
Apr 20, 2021
Is explained in the NEWs entry. I plan to explain it also on the final commit :) |
…lways enabled (pythonGH-25236)" This reverts commit 1be456a.
vstinner
commented
Apr 20, 2021
Oh ok, thanks. Copy of the NEWS entry: Revert making 'from future import annotations' the default. This follows |
@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) |
pablogsal
commented
Apr 20, 2021
We should be able to go back a version, I think. Cached pycs for alpha versions should not take lots of consideration |
pablogsal
commented
Apr 20, 2021
Crap, there has been quite a lot of changes since then. Ok, bumping it is! |
pablogsal
commented
Apr 20, 2021
Done in ef38777a1f |
ef38777 to
f70048dComparevstinner
commented
Apr 20, 2021
Oops sorry, I wanted to remove my comment rather posting it, but I closed the PR instead... I reopened the PR. |
We can also update the doc of |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
pablogsal
commented
Apr 21, 2021
methane
commented
Apr 21, 2021
Yes. And I know understand why this assrtion passes. Annotation is tuple even when PEP 563 is disabled. That's nice. |
ce789a0 to
51a6f52Comparebedevere-bot
commented
Apr 21, 2021
🤖 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. |
…05.9eeCNZ.rst Co-authored-by: Inada Naoki <songofacandy@gmail.com>
51a6f52 to
b6a88edComparepablogsal
commented
Apr 21, 2021
I still would like if someone can formally approve the PR :) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
methane
left a comment
There was a problem hiding this comment.
I have not reviewed tests yet. In other parts, LGTM.
vstinner
left a comment
There was a problem hiding this comment.
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).
@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 |
vstinner
commented
Apr 21, 2021
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. |
https://bugs.python.org/issue38605