dycw-utilities 0.125.14__py3-none-any.whl → 0.125.16__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.
- {dycw_utilities-0.125.14.dist-info → dycw_utilities-0.125.16.dist-info}/METADATA +1 -1
- {dycw_utilities-0.125.14.dist-info → dycw_utilities-0.125.16.dist-info}/RECORD +6 -6
- utilities/__init__.py +1 -1
- utilities/asyncio.py +8 -7
- {dycw_utilities-0.125.14.dist-info → dycw_utilities-0.125.16.dist-info}/WHEEL +0 -0
- {dycw_utilities-0.125.14.dist-info → dycw_utilities-0.125.16.dist-info}/licenses/LICENSE +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
utilities/__init__.py,sha256=
|
1
|
+
utilities/__init__.py,sha256=_Jk4nXvJPOIX38g8WhJA-81T9Lr_sSEU7Sp5uNotGcs,61
|
2
2
|
utilities/altair.py,sha256=Gpja-flOo-Db0PIPJLJsgzAlXWoKUjPU1qY-DQ829ek,9156
|
3
|
-
utilities/asyncio.py,sha256=
|
3
|
+
utilities/asyncio.py,sha256=D1o5dwq1y17Nk5tzeDyw5vAwxzqdy9WMY5u-uA6NMPw,50716
|
4
4
|
utilities/atomicwrites.py,sha256=geFjn9Pwn-tTrtoGjDDxWli9NqbYfy3gGL6ZBctiqSo,5393
|
5
5
|
utilities/atools.py,sha256=IYMuFSFGSKyuQmqD6v5IUtDlz8PPw0Sr87Cub_gRU3M,1168
|
6
6
|
utilities/cachetools.py,sha256=C1zqOg7BYz0IfQFK8e3qaDDgEZxDpo47F15RTfJM37Q,2910
|
@@ -88,7 +88,7 @@ utilities/warnings.py,sha256=un1LvHv70PU-LLv8RxPVmugTzDJkkGXRMZTE2-fTQHw,1771
|
|
88
88
|
utilities/whenever.py,sha256=jS31ZAY5OMxFxLja_Yo5Fidi87Pd-GoVZ7Vi_teqVDA,16743
|
89
89
|
utilities/zipfile.py,sha256=24lQc9ATcJxHXBPc_tBDiJk48pWyRrlxO2fIsFxU0A8,699
|
90
90
|
utilities/zoneinfo.py,sha256=-5j7IQ9nb7gR43rdgA7ms05im-XuqhAk9EJnQBXxCoQ,1874
|
91
|
-
dycw_utilities-0.125.
|
92
|
-
dycw_utilities-0.125.
|
93
|
-
dycw_utilities-0.125.
|
94
|
-
dycw_utilities-0.125.
|
91
|
+
dycw_utilities-0.125.16.dist-info/METADATA,sha256=9y-tFV-n1PnxG6amsUhKiEKegf9t4ijGRLU6bSBhxsE,12852
|
92
|
+
dycw_utilities-0.125.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
93
|
+
dycw_utilities-0.125.16.dist-info/licenses/LICENSE,sha256=gppZp16M6nSVpBbUBrNL6JuYfvKwZiKgV7XoKKsHzqo,1066
|
94
|
+
dycw_utilities-0.125.16.dist-info/RECORD,,
|
utilities/__init__.py
CHANGED
utilities/asyncio.py
CHANGED
@@ -795,13 +795,9 @@ class Looper(Generic[_T]):
|
|
795
795
|
assert_never(never)
|
796
796
|
|
797
797
|
def __await__(self) -> Any:
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
case Task() as task:
|
802
|
-
return task.__await__()
|
803
|
-
case _ as never:
|
804
|
-
assert_never(never)
|
798
|
+
if (task := self._task) is None: # cannot use match
|
799
|
+
raise _LooperNoTaskError(looper=self)
|
800
|
+
return task.__await__()
|
805
801
|
|
806
802
|
def __len__(self) -> int:
|
807
803
|
return self._queue.qsize()
|
@@ -1144,6 +1140,11 @@ class Looper(Generic[_T]):
|
|
1144
1140
|
async def _tear_down_core(self) -> None:
|
1145
1141
|
"""Core part of tearing down the looper."""
|
1146
1142
|
|
1143
|
+
@property
|
1144
|
+
def with_auto_start(self) -> Self:
|
1145
|
+
"""Replace the auto start flag of the looper."""
|
1146
|
+
return self.replace(auto_start=True)
|
1147
|
+
|
1147
1148
|
def _yield_sub_loopers(self) -> Iterator[Looper]:
|
1148
1149
|
"""Yield all sub-loopers."""
|
1149
1150
|
yield from []
|
File without changes
|
File without changes
|