Skip to content

gh-145868: Suggest names on typos in __future__ imports#154347

Open
sobolevn wants to merge 2 commits into
python:mainfrom
sobolevn:issue-145868
Open

gh-145868: Suggest names on typos in __future__ imports#154347
sobolevn wants to merge 2 commits into
python:mainfrom
sobolevn:issue-145868

Conversation

@sobolevn

@sobolevn sobolevn commented Jul 21, 2026

Copy link
Copy Markdown
Member

Comment thread Lib/test/test_future_stmt/test_future.py Outdated
Comment thread Python/future.c Outdated
Comment thread Include/cpython/compile.h
#define FUTURE_BARRY_AS_BDFL "barry_as_FLUFL"
#define FUTURE_GENERATOR_STOP "generator_stop"
#define FUTURE_ANNOTATIONS "annotations"
#define FUTURE_BRACES "braces"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may seem silly but can you put that define in its historical addition? like when did we add that future? I do not know though if the defines are sorted (but annotations is definitely the last one being added IIRC)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to keep it sorted the same way it is in future.c.

Comment thread Python/future.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants