Update tqdm to 4.67.* (#13004)

This commit is contained in:
Danny Yang
2024-11-18 07:09:35 -05:00
committed by GitHub
parent 5d859ca366
commit 2cc71de3c3
3 changed files with 16 additions and 6 deletions

View File

@@ -1,4 +1,2 @@
# Cannot import in stubtest
tqdm.__main__
# disco-py fails to install through pip and is an archived project
tqdm.contrib.discord

View File

@@ -1,5 +1,6 @@
version = "4.66.*"
version = "4.67.*"
upstream_repository = "https://github.com/tqdm/tqdm"
requires = ["types-requests"]
[tool.stubtest]
extras = ["slack", "telegram"]

View File

@@ -1,17 +1,28 @@
from _typeshed import Incomplete, SupportsWrite
from collections.abc import Iterable, Mapping
from concurrent.futures import Future
from typing import NoReturn, TypeVar, overload
from requests import Session
from ..auto import tqdm as tqdm_auto
from .utils_worker import MonoWorker
__all__ = ["DiscordIO", "tqdm_discord", "tdrange", "tqdm", "trange"]
class DiscordIO(MonoWorker):
text: Incomplete
API: str = "https://discord.com/api/v10"
UA: str = ...
channel_id: Incomplete
message: Incomplete
session: Session
text: Incomplete
token: Incomplete
def __init__(self, token, channel_id) -> None: ...
def write(self, s): ...
def delete(self) -> Future[Incomplete]: ...
@property
def message_id(self): ...
_T = TypeVar("_T")
@@ -79,8 +90,8 @@ class tqdm_discord(tqdm_auto[_T]):
gui: bool = ...,
**kwargs,
) -> None: ...
def display(
self, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style=..., check_delay: bool = ...
def display( # type: ignore[override]
self, *, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style=..., check_delay: bool = ...
) -> None: ...
def clear(self, *args, **kwargs) -> None: ...