reykit 1.1.86__py3-none-any.whl → 1.1.88__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.
reykit/rbase.py CHANGED
@@ -30,6 +30,7 @@ __all__ = (
30
30
  'KT',
31
31
  'VT',
32
32
  'CallableT',
33
+ 'CoroutineFunctionT',
33
34
  'Base',
34
35
  'StaticMeta',
35
36
  'ConfigMeta',
reykit/rschedule.py CHANGED
@@ -162,7 +162,7 @@ class Schedule(Base):
162
162
  with self.database.connect() as conn:
163
163
  conn = self.database.connect()
164
164
  conn.execute.insert(
165
- (self.db_names['base'], self.db_names['base.schedule']),
165
+ self.db_names['base.schedule'],
166
166
  data
167
167
  )
168
168
  id_ = conn.insert_id()
@@ -182,7 +182,7 @@ class Schedule(Base):
182
182
  'status': 2
183
183
  }
184
184
  self.database.execute.update(
185
- (self.db_names['base'], self.db_names['base.schedule']),
185
+ self.db_names['base.schedule'],
186
186
  data
187
187
  )
188
188
  raise
@@ -194,7 +194,7 @@ class Schedule(Base):
194
194
  'status': 1
195
195
  }
196
196
  self.database.execute.update(
197
- (self.db_names['base'], self.db_names['base.schedule']),
197
+ self.db_names['base.schedule'],
198
198
  data
199
199
  )
200
200
 
@@ -375,7 +375,7 @@ class Schedule(Base):
375
375
 
376
376
  def build_db(self) -> None:
377
377
  """
378
- Check and build all standard databases and tables, by `self.db_names`.
378
+ Check and build database tables, by `self.db_names`.
379
379
  """
380
380
 
381
381
  # Check.
reykit/rtask.py CHANGED
@@ -312,7 +312,7 @@ def async_run(
312
312
  *,
313
313
  before: CallableCoroutine | None = None,
314
314
  after: CallableCoroutine | None = None,
315
- return_exc: bool = False
315
+ return_exc: Literal[False] = False
316
316
  ) -> T: ...
317
317
 
318
318
  @overload
@@ -320,7 +320,7 @@ def async_run(
320
320
  *coroutines: Coroutine[Any, Any, T] | ATask[Any, Any, T] | Callable[[], Coroutine[Any, Any, T]],
321
321
  before: CallableCoroutine | None = None,
322
322
  after: CallableCoroutine | None = None,
323
- return_exc: bool = False
323
+ return_exc: Literal[False] = False
324
324
  ) -> list[T]: ...
325
325
 
326
326
  @overload
@@ -338,14 +338,14 @@ def async_run(
338
338
  before: CallableCoroutine | None = None,
339
339
  after: CallableCoroutine | None = None,
340
340
  return_exc: Literal[True]
341
- ) -> list[T] | BaseException: ...
341
+ ) -> list[T | BaseException]: ...
342
342
 
343
343
  def async_run(
344
344
  *coroutines: Coroutine[Any, Any, T] | ATask[Any, Any, T] | Callable[[], Coroutine[Any, Any, T]],
345
345
  before: CallableCoroutine | None = None,
346
346
  after: CallableCoroutine | None = None,
347
347
  return_exc: bool = False
348
- ) -> T | list[T]:
348
+ ) -> T | BaseException | list[T | BaseException]:
349
349
  """
350
350
  Asynchronous run coroutines.
351
351
 
@@ -375,7 +375,7 @@ def async_run(
375
375
 
376
376
 
377
377
  # Define.
378
- async def async_run_coroutine() -> list[T]:
378
+ async def async_run_coroutine() -> list[T | BaseException]:
379
379
  """
380
380
  Asynchronous run coroutines.
381
381
 
@@ -389,7 +389,7 @@ def async_run(
389
389
  await before
390
390
 
391
391
  # Gather.
392
- results: list[T] = await asyncio_gather(*coroutines, return_exceptions=return_exc)
392
+ results: list[T | BaseException] = await asyncio_gather(*coroutines, return_exceptions=return_exc)
393
393
 
394
394
  # After.
395
395
  if after is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reykit
3
- Version: 1.1.86
3
+ Version: 1.1.88
4
4
  Summary: Kit method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reykit/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -1,6 +1,6 @@
1
1
  reykit/__init__.py,sha256=V86CHqPAAVkooVx3_QIOKpDIFVneQCTTSwfJ-uWgBno,788
2
2
  reykit/rall.py,sha256=7Hip02YOkIDm3_xkoSDjvvYV2LhdBV2r4UKzWWnIfIo,628
3
- reykit/rbase.py,sha256=PL0IngbmGm7luNTQh22hdV-TlVjH9EtXEzeRVGOYnAU,21758
3
+ reykit/rbase.py,sha256=gT4dcdReki6HTDwCOAieqL3wi7lKUj7OfgiTXWTx_jo,21785
4
4
  reykit/rdata.py,sha256=iOU2_9RCihxrdXswZKvonVMIM-X5-L89WhawGDLHt4w,11361
5
5
  reykit/remail.py,sha256=l4HGKXdfHNBxyBT3YxeZyQhfecbElqTqSAGInwWhap8,6723
6
6
  reykit/rimage.py,sha256=lNN2iMpvSMqh-nPTpxrA9yHy43EA5WoYdxKYhqPwMgk,6154
@@ -11,18 +11,18 @@ reykit/rnum.py,sha256=VKICD64mEfiStAGWaxg3kzQjf7TTqiSBNe9LCpM9MLo,3623
11
11
  reykit/ros.py,sha256=J6YxNbOceMhHwVKDugx5Wd-KFliRtlhFEVVcCAaE_So,47847
12
12
  reykit/rrand.py,sha256=fiwxyUMaLtFjPanVwTOiwvEEucmf0t2WiZF9ul9o6pU,8572
13
13
  reykit/rre.py,sha256=1qva7xatKVE9qC2j7IujjXSM59qxHWwTYpiizFFQ8Xo,6024
14
- reykit/rschedule.py,sha256=jy6hxaIugyjSpUdQhPgCuubAZmRzKxHu4Nz3xM8Gid8,14696
14
+ reykit/rschedule.py,sha256=y4piG8DT3TpE9jVI18UWvk-caXT7S409_vxetYOJ-jw,14603
15
15
  reykit/rstdout.py,sha256=yesWo7wIGablpyAu-2J2Gw11Qp3GdQjGICTyIcvLyt4,8200
16
16
  reykit/rsys.py,sha256=AP62KyN40flCeQJBclfJq8shachSAFT0LkVjiKsXkrw,24946
17
17
  reykit/rtable.py,sha256=UQ-JlwjssMR3gY1iY-VGQEKQ5_BZabpJy6TL7Fx19c4,12200
18
- reykit/rtask.py,sha256=TeuHE4BN978AlOu5pcOvem7KK-6L0B50ncxNuS32nBw,27024
18
+ reykit/rtask.py,sha256=xPeVQGzRygk062U1vyq2bglgDwxJf51gEJbxgbcGgh8,27108
19
19
  reykit/rtext.py,sha256=cWHy19lDcJvpX7LU95kmRVsDimpAUaz5TbKC1h83gB4,13254
20
20
  reykit/rtime.py,sha256=lsSKaYFmYXlDN18yj2fLVTKSruzgygl8icW6_Fl42Xk,17807
21
21
  reykit/rwrap.py,sha256=G4TL2GWUaW9DrCFRcsnDE1CwgdWeP2PnjQckheRx4p0,15095
22
22
  reykit/rzip.py,sha256=BGEONswuBZxQ-zcgd_xp2fcvYesC9AmKaaXWvnT3bTI,3456
23
23
  reykit/rdll/__init__.py,sha256=nLSb8onBm2ilyoxzpDzUeGfSCKwkLEesIhzK3LiJ8mk,701
24
24
  reykit/rdll/rdll_core.py,sha256=o6-rKcTQgxZQe0kD3GnwyNb3KL9IogzgCQNOmYLMm7A,5086
25
- reykit-1.1.86.dist-info/METADATA,sha256=ySyPHRKNXeVMRKVlPWBYBTtpmJdqfhOa4QiH0CHCZO0,1872
26
- reykit-1.1.86.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- reykit-1.1.86.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
28
- reykit-1.1.86.dist-info/RECORD,,
25
+ reykit-1.1.88.dist-info/METADATA,sha256=PLpH6blUhMWNniLSSZe-157zDF6c7gYG2BaGGsqSnNM,1872
26
+ reykit-1.1.88.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ reykit-1.1.88.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
28
+ reykit-1.1.88.dist-info/RECORD,,