mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Update tqdm to 4.67.* (#13004)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user