-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Update tqdm to 4.67.* #13004
base: main
Are you sure you want to change the base?
Update tqdm to 4.67.* #13004
Conversation
This comment has been minimized.
This comment has been minimized.
Added mypy suppression because the source just has |
This comment has been minimized.
This comment has been minimized.
def display( | ||
self, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style=..., check_delay: bool = ... | ||
self, *, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style=..., check_delay: bool = ... |
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.
mypy failure is due to these parameters being keyword-only here but positional-or-keyword in the parent:
typeshed/stubs/tqdm/tqdm/std.pyi
Line 224 in 90842a4
def display(self, msg: str | None = None, pos: int | None = None) -> None: ... |
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.
This seems like an issue in the source library, the implementation for this function is keyword-only: https://github.com/tqdm/tqdm/blob/master/tqdm/contrib/discord.py#L126
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.
Then we'll need to add a type ignore here with a comment.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
closes #12968