Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion stubs/tqdm/tqdm/contrib/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
from _typeshed import Incomplete
from collections.abc import Callable, Generator
from typing import TypeVar

from ..utils import ObjectWrapper

__all__ = ["tenumerate", "tzip", "tmap"]

_T = TypeVar("_T")

class DummyTqdmFile(ObjectWrapper):
def __init__(self, wrapped) -> None: ...
def write(self, x, nolock: bool = False) -> None: ...
def __del__(self) -> None: ...

def tenumerate(iterable, start: int = 0, total=None, tqdm_class: type[Incomplete] = ..., **tqdm_kwargs): ...
def tzip(iter1, *iter2plus, **tqdm_kwargs) -> Generator[Incomplete]: ...
def tmap(function: Callable[..., Incomplete], *sequences, **tqdm_kwargs) -> Generator[Incomplete]: ...
def tmap(function: Callable[..., _T], *sequences, **tqdm_kwargs) -> Generator[_T]: ...
Loading