-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathtqdm.pyi
83 lines (78 loc) · 2.62 KB
/
tqdm.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
from collections.abc import Iterable, Mapping
from typing import Any, Generic, Iterator, MutableMapping, TypeVar, overload
from _typeshed import SupportsWrite
__all__ = [
"tqdm",
]
_T = TypeVar("_T")
class Comparable:
pass
class tqdm(Generic[_T], Iterable[_T], Comparable):
@overload
def __init__(
self,
iterable: Iterable[_T],
desc: str | None = ...,
total: float | None = ...,
leave: bool | None = ...,
file: SupportsWrite[str] | None = ...,
ncols: int | None = ...,
mininterval: float = ...,
maxinterval: float = ...,
miniters: float | None = ...,
ascii: bool | str | None = ...,
disable: bool | None = ...,
unit: str = ...,
unit_scale: bool | float = ...,
dynamic_ncols: bool = ...,
smoothing: float = ...,
bar_format: str | None = ...,
initial: float = ...,
position: int | None = ...,
postfix: Mapping[str, object] | str | None = ...,
unit_divisor: float = ...,
write_bytes: bool | None = ...,
lock_args: tuple[bool | None, float | None] | tuple[bool | None] | None = ...,
nrows: int | None = ...,
colour: str | None = ...,
delay: float | None = ...,
gui: bool = ...,
**kwargs: Any,
) -> None: ...
@overload
def __init__(
self,
iterable: None = ...,
desc: str | None = ...,
total: float | None = ...,
leave: bool | None = ...,
file: SupportsWrite[str] | None = ...,
ncols: int | None = ...,
mininterval: float = ...,
maxinterval: float = ...,
miniters: float | None = ...,
ascii: bool | str | None = ...,
disable: bool | None = ...,
unit: str = ...,
unit_scale: bool | float = ...,
dynamic_ncols: bool = ...,
smoothing: float = ...,
bar_format: str | None = ...,
initial: float = ...,
position: int | None = ...,
postfix: Mapping[str, object] | str | None = ...,
unit_divisor: float = ...,
write_bytes: bool | None = ...,
lock_args: tuple[bool | None, float | None] | tuple[bool | None] | None = ...,
nrows: int | None = ...,
colour: str | None = ...,
delay: float | None = ...,
gui: bool = ...,
**kwargs: Any,
) -> None: ...
def update(self, n: float | None = ...) -> bool | None: ...
def close(self) -> None: ...
def clear(self, nolock: bool = ...) -> None: ...
@property
def format_dict(self) -> MutableMapping[str, Any]: ...
def __iter__(self) -> Iterator[_T]: ...