Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Update tqdm to 4.67.* #13004

wants to merge 6 commits into from

Conversation

yangdanny97
Copy link
Contributor

closes #12968

This comment has been minimized.

@yangdanny97
Copy link
Contributor Author

Added mypy suppression because the source just has **kwargs but it overrides a function without kwargs.

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 = ...
Copy link
Contributor

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:

def display(self, msg: str | None = None, pos: int | None = None) -> None: ...

Copy link
Contributor Author

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

Copy link
Member

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.

@yangdanny97 yangdanny97 marked this pull request as ready for review November 15, 2024 14:10
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants