Skip to content

gh-119180: annotationlib: Fix __all__, other minor fixes - #122365

Merged
JelleZijlstra merged 3 commits into
python:mainfrom
JelleZijlstra:pep649-cleanup
Aug 11, 2024
Merged

gh-119180: annotationlib: Fix __all__, other minor fixes#122365
JelleZijlstra merged 3 commits into
python:mainfrom
JelleZijlstra:pep649-cleanup

Conversation

@JelleZijlstra

@JelleZijlstraJelleZijlstra commented Jul 27, 2024

Copy link
Copy Markdown
Member

Comment threadLib/annotationlib.py
Comment on lines +13 to +14
"call_evaluate_function",
"get_annotate_function",

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

These two were missing. The rest of the changes in this file are just formatting.

self.assertIs(annotate_func, None)


class TestAnnotationLib(unittest.TestCase):

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This is the only non-formatting change in this file.

@JelleZijlstraJelleZijlstra changed the title gh-119180: annotationlib: Fix __all__, reformat, other minor fixesgh-119180: annotationlib: Fix __all__, run Black on annotationlib.py, other minor fixesJul 27, 2024

@AA-TurnerAA-Turner left a comment

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.

This is the first stdlib module we're proposing to use autoformatting for, is it worth checking on Discourse? Autoformatters are much more opionated than PEP 8, which may be a surprising experience for contributors (note @encukou ran into an issue with a similar tool just whilst making a change to a CPython-only docs extension).

A

@JelleZijlstra

Copy link
Copy Markdown
MemberAuthor

I hoped it wouldn't be controversial since we're already doing it for some of the Tools/ code. I'm not interested in discussing this issue on Discourse; if there's disagreement, I'll just take out the autoformatting.

@JelleZijlstra
JelleZijlstra enabled auto-merge (squash) August 11, 2024 23:21
@JelleZijlstra
JelleZijlstra merged commit 4534068 into python:mainAug 11, 2024
@hugovkhugovk changed the title gh-119180: annotationlib: Fix __all__, run Black on annotationlib.py, other minor fixesgh-119180: annotationlib: Fix __all__, run Black other minor fixesAug 12, 2024
@hugovkhugovk changed the title gh-119180: annotationlib: Fix __all__, run Black other minor fixesgh-119180: annotationlib: Fix __all__, other minor fixesAug 12, 2024
blhsing pushed a commit to blhsing/cpython that referenced this pull request Aug 22, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@JelleZijlstra@AA-Turner