-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-104050: Argument Clinic: Annotate the BufferSeries class #106935
gh-104050: Argument Clinic: Annotate the BufferSeries class #106935
Conversation
erlend-aasland
commented
Jul 20, 2023
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Add type annotations to clinic.py #104050
_TextAccumulator has no '_text' attribute; it has 'text'
Tools/clinic/clinic.py
Outdated
def __getitem__( | ||
self, | ||
i: int | ||
) -> _TextAccumulator: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not write it in one line? It is still pretty short.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure; I have not yet developed a preference when it comes to annotation style :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I agree with Serhiy — I would probably put this all on one line — but I also don't really care much either way (life's too short to spend it arguing over code formatting preferences 😄)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(life's too short to spend it arguing over code formatting preferences 😄)
No, it isn't! 😆
On hold until #106972 has landed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks for the reviews! |