types-tqdm 4.66.0.20240106__py3-none-any.whl → 4.67.0.20241119__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
tqdm-stubs/METADATA.toml CHANGED
@@ -1,5 +1,6 @@
1
- version = "4.66.*"
1
+ version = "4.67.*"
2
2
  upstream_repository = "https://github.com/tqdm/tqdm"
3
+ requires = ["types-requests"]
3
4
 
4
5
  [tool.stubtest]
5
6
  extras = ["slack", "telegram"]
@@ -1,17 +1,28 @@
1
1
  from _typeshed import Incomplete, SupportsWrite
2
2
  from collections.abc import Iterable, Mapping
3
+ from concurrent.futures import Future
3
4
  from typing import NoReturn, TypeVar, overload
4
5
 
6
+ from requests import Session
7
+
5
8
  from ..auto import tqdm as tqdm_auto
6
9
  from .utils_worker import MonoWorker
7
10
 
8
11
  __all__ = ["DiscordIO", "tqdm_discord", "tdrange", "tqdm", "trange"]
9
12
 
10
13
  class DiscordIO(MonoWorker):
11
- text: Incomplete
14
+ API: str = "https://discord.com/api/v10"
15
+ UA: str = ...
16
+ channel_id: Incomplete
12
17
  message: Incomplete
18
+ session: Session
19
+ text: Incomplete
20
+ token: Incomplete
13
21
  def __init__(self, token, channel_id) -> None: ...
14
22
  def write(self, s): ...
23
+ def delete(self) -> Future[Incomplete]: ...
24
+ @property
25
+ def message_id(self): ...
15
26
 
16
27
  _T = TypeVar("_T")
17
28
 
@@ -79,13 +90,8 @@ class tqdm_discord(tqdm_auto[_T]):
79
90
  gui: bool = ...,
80
91
  **kwargs,
81
92
  ) -> None: ...
82
- def display(
83
- self,
84
- msg: str | None = ...,
85
- pos: int | None = ...,
86
- close: bool = ...,
87
- bar_style: Incomplete = ...,
88
- check_delay: bool = ...,
93
+ def display( # type: ignore[override]
94
+ self, *, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style=..., check_delay: bool = ...
89
95
  ) -> None: ...
90
96
  def clear(self, *args, **kwargs) -> None: ...
91
97
 
@@ -84,7 +84,9 @@ class tqdm_slack(tqdm_auto[_T]):
84
84
  channel: int = ...,
85
85
  **kwargs,
86
86
  ) -> None: ...
87
- def display(self, *, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style: Incomplete = ..., check_delay: bool = ...) -> None: ... # type: ignore[override]
87
+ def display( # type: ignore[override]
88
+ self, *, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style=..., check_delay: bool = ...
89
+ ) -> None: ...
88
90
  def clear(self, *args, **kwargs) -> None: ...
89
91
 
90
92
  def tsrange(*args, **kwargs) -> tqdm_slack[int]: ...
@@ -89,7 +89,9 @@ class tqdm_telegram(tqdm_auto[_T]):
89
89
  chat_id: str = ...,
90
90
  **kwargs,
91
91
  ) -> None: ...
92
- def display(self, *, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style: Incomplete = ..., check_delay: bool = ...) -> None: ... # type: ignore[override]
92
+ def display( # type: ignore[override]
93
+ self, *, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style=..., check_delay: bool = ...
94
+ ) -> None: ...
93
95
  def clear(self, *args, **kwargs) -> None: ...
94
96
  def close(self) -> None: ...
95
97
 
tqdm-stubs/py.typed ADDED
File without changes
tqdm-stubs/rich.pyi CHANGED
@@ -13,10 +13,10 @@ _T = TypeVar("_T")
13
13
  class _ProgressColumn(ABC):
14
14
  max_refresh: float | None
15
15
  def __init__(self, table_column: Incomplete | None = ...) -> None: ...
16
- def get_table_column(self) -> Incomplete: ...
17
- def __call__(self, task: Incomplete) -> Incomplete: ...
16
+ def get_table_column(self): ...
17
+ def __call__(self, task): ...
18
18
  @abstractmethod
19
- def render(self, task: Incomplete) -> Incomplete: ...
19
+ def render(self, task): ...
20
20
 
21
21
  class FractionColumn(_ProgressColumn):
22
22
  unit_scale: bool
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: types-tqdm
3
- Version: 4.66.0.20240106
3
+ Version: 4.67.0.20241119
4
4
  Summary: Typing stubs for tqdm
5
5
  Home-page: https://github.com/python/typeshed
6
- License: Apache-2.0 license
6
+ License: Apache-2.0
7
7
  Project-URL: GitHub, https://github.com/python/typeshed
8
8
  Project-URL: Changes, https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/tqdm.md
9
9
  Project-URL: Issue tracker, https://github.com/python/typeshed/issues
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Typing :: Stubs Only
14
14
  Requires-Python: >=3.8
15
15
  Description-Content-Type: text/markdown
16
+ Requires-Dist: types-requests
16
17
 
17
18
  ## Typing stubs for tqdm
18
19
 
@@ -22,16 +23,21 @@ It can be used by type-checking tools like
22
23
  [mypy](https://github.com/python/mypy/),
23
24
  [pyright](https://github.com/microsoft/pyright),
24
25
  [pytype](https://github.com/google/pytype/),
25
- PyCharm, etc. to check code that uses
26
- `tqdm`.
26
+ [Pyre](https://pyre-check.org/),
27
+ PyCharm, etc. to check code that uses `tqdm`. This version of
28
+ `types-tqdm` aims to provide accurate annotations for
29
+ `tqdm==4.67.*`.
27
30
 
28
- This version of `types-tqdm` aims to provide accurate annotations
29
- for `tqdm==4.66.*`.
30
- The source for this package can be found at
31
- https://github.com/python/typeshed/tree/main/stubs/tqdm. All fixes for
32
- types and metadata should be contributed there.
31
+ This package is part of the [typeshed project](https://github.com/python/typeshed).
32
+ All fixes for types and metadata should be contributed there.
33
+ See [the README](https://github.com/python/typeshed/blob/main/README.md)
34
+ for more details. The source for this package can be found in the
35
+ [`stubs/tqdm`](https://github.com/python/typeshed/tree/main/stubs/tqdm)
36
+ directory.
33
37
 
34
- See https://github.com/python/typeshed/blob/main/README.md for more details.
35
- This package was generated from typeshed commit `1de5830a2703936a96a126248227d5c7db883674` and was tested
36
- with mypy 1.8.0, pyright 1.1.342, and
37
- pytype 2023.12.18.
38
+ This package was tested with
39
+ mypy 1.13.0,
40
+ pyright 1.1.389,
41
+ and pytype 2024.10.11.
42
+ It was generated from typeshed commit
43
+ [`6647ae9bc781041b0021de35f278b42e622875ca`](https://github.com/python/typeshed/commit/6647ae9bc781041b0021de35f278b42e622875ca).
@@ -1,4 +1,4 @@
1
- tqdm-stubs/METADATA.toml,sha256=xbQW0WdVUVO_M348YNW_VPEW_6ujz_VGFPrQSR6rAmM,185
1
+ tqdm-stubs/METADATA.toml,sha256=fjEg2EO8vNQgM2mKLSz32l_rvQNAidJmGDwwUeCTCd8,215
2
2
  tqdm-stubs/__init__.pyi,sha256=F_z3B-R7slO79sNDtV1XA1APf3_zNGKRaSq9PLWsOIY,1184
3
3
  tqdm-stubs/_dist_ver.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tqdm-stubs/_main.pyi,sha256=bEbhOS_73qGMzLkrvJAHDSV-_ce6Hf_HXX6gB0wOBFw,68
@@ -16,7 +16,8 @@ tqdm-stubs/dask.pyi,sha256=pkl8VHGFIe9YUJuJWG29t_QeNzjNvlNnkJOzgcZgO3U,939
16
16
  tqdm-stubs/gui.pyi,sha256=qyA3QugzBDjxfBJGiTn-sAT9ZcrLEyBq3cLRxxjW5PY,2868
17
17
  tqdm-stubs/keras.pyi,sha256=8TUbtDQLCkEv-T2Zfs7NMl1wexOuooL-NZbEMd9TTLU,2346
18
18
  tqdm-stubs/notebook.pyi,sha256=NOgkD_f27YuW5Cc-d3dRFs6WUnyMtkd_hOBuPJo2_8s,3316
19
- tqdm-stubs/rich.pyi,sha256=0VKOva8s-xcFMAEZ4CTYuYfjMHXvmldpwbARXlWk3-o,3525
19
+ tqdm-stubs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
+ tqdm-stubs/rich.pyi,sha256=v-jj1DoxGsissgdklg2V4HPBFTYKRwV37lOaCPy70ko,3459
20
21
  tqdm-stubs/std.pyi,sha256=jrJFSAj0P-WPmtrVr_tBvZ6Z0LonsbNKMRvlIXJHJSw,9836
21
22
  tqdm-stubs/tk.pyi,sha256=9rsQjSxcMzCSGSQjaqyOj3daS9E-8xOgUjBFANLjIYk,3103
22
23
  tqdm-stubs/utils.pyi,sha256=bdaoA6ZuWMJHU1xEAZ3AG0mr6yJBpylCu0IInqh2dWU,2063
@@ -24,13 +25,13 @@ tqdm-stubs/version.pyi,sha256=Y25n44pyE3vp92MiABKrcK3IWRyQ1JG1rZ4Ufqy2nC0,17
24
25
  tqdm-stubs/contrib/__init__.pyi,sha256=GpO_YNv6kgek1vJQJevHFRo4hmko6iMO_nC98s320Ms,664
25
26
  tqdm-stubs/contrib/bells.pyi,sha256=oFr86WYz2ffMnvRNWVCF6WxtoDgEeJPHXhUd7dd9j6s,80
26
27
  tqdm-stubs/contrib/concurrent.pyi,sha256=dctlaypnBYiOZqjT7y9wPdL2zheZeZsiyRPxMC6Xh5A,144
27
- tqdm-stubs/contrib/discord.pyi,sha256=uvD89KnOJBHOVhKwj3DGd0-N9vetB3s8w11Y7zSPGEM,3018
28
+ tqdm-stubs/contrib/discord.pyi,sha256=m0-06z_LoTvGWlDyUvmWJdLyZbU_m_w9pl3ylhlEs70,3285
28
29
  tqdm-stubs/contrib/itertools.pyi,sha256=rLCau4I1hk7qFVIZxSn71Y3_cHdAayJEgVLp2XJxTuY,208
29
30
  tqdm-stubs/contrib/logging.pyi,sha256=dv6yrcLziLXYniFCIPE67GhSWqZmIzIt0x8DPW5hP3w,716
30
- tqdm-stubs/contrib/slack.pyi,sha256=isi7YprhA912DReyNrPjoP_-w4--QyDOhv3xTiaamx8,3106
31
- tqdm-stubs/contrib/telegram.pyi,sha256=yyFoUjzRJ_7wT8gr9RvB7eHCrutyMcaqInSZr7d6xEQ,3296
31
+ tqdm-stubs/contrib/slack.pyi,sha256=sikJvfoFbWyWVMULWE0uALrvh-kz5KYp_z6sd5sOKx0,3106
32
+ tqdm-stubs/contrib/telegram.pyi,sha256=BMDCPAwPnZvTBUXLuUZXEuqfGAhGWHkyvElddxSgsc0,3296
32
33
  tqdm-stubs/contrib/utils_worker.pyi,sha256=C6zWnwLzTFMWEPdLk-EwT2pLRFrJndkqH4MIjJsEcV4,480
33
- types_tqdm-4.66.0.20240106.dist-info/METADATA,sha256=LIBD-EHapFPhtSwM-WG4PdivwPqpgc_TwIxe7pHu7fI,1531
34
- types_tqdm-4.66.0.20240106.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
35
- types_tqdm-4.66.0.20240106.dist-info/top_level.txt,sha256=kIt5gMq9VgDZ26WhgdWmbKuKakT0AyLTo-5C-I3j5TM,11
36
- types_tqdm-4.66.0.20240106.dist-info/RECORD,,
34
+ types_tqdm-4.67.0.20241119.dist-info/METADATA,sha256=zF1wMzTbkPbVPQrvpHiMGx_KXfRxMTent_t72tiOats,1801
35
+ types_tqdm-4.67.0.20241119.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
36
+ types_tqdm-4.67.0.20241119.dist-info/top_level.txt,sha256=kIt5gMq9VgDZ26WhgdWmbKuKakT0AyLTo-5C-I3j5TM,11
37
+ types_tqdm-4.67.0.20241119.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.45.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5