reykit 1.1.85__py3-none-any.whl → 1.1.87__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/rmonkey.py CHANGED
@@ -54,7 +54,7 @@ def monkey_sqlalchemy_result_more_fetch():
54
54
 
55
55
  # Add.
56
56
  @property
57
- def method_data(self: Result) -> Self:
57
+ def method_data(self: 'Result') -> Self:
58
58
  """
59
59
  Get Data.
60
60
 
@@ -79,7 +79,7 @@ def monkey_sqlalchemy_result_more_fetch():
79
79
  CursorResult.to_excel = Table.to_excel
80
80
 
81
81
 
82
- def method_show(self: Result, limit: int | None = None) -> None:
82
+ def method_show(self: 'Result', limit: int | None = None) -> None:
83
83
  """
84
84
  Print result.
85
85
 
@@ -131,7 +131,7 @@ def monkey_sqlalchemy_result_more_fetch():
131
131
 
132
132
 
133
133
  @property
134
- def method_exist(self: Result) -> bool:
134
+ def method_exist(self: 'Result') -> bool:
135
135
  """
136
136
  Judge whether is exist row.
137
137
 
@@ -150,7 +150,7 @@ def monkey_sqlalchemy_result_more_fetch():
150
150
 
151
151
 
152
152
  @property
153
- def method_empty(self: Result) -> bool:
153
+ def method_empty(self: 'Result') -> bool:
154
154
  """
155
155
  Judge whether is empty row.
156
156
 
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.85
3
+ Version: 1.1.87
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,11 +1,11 @@
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
7
7
  reykit/rlog.py,sha256=M4UgS2gxYJOWv66ItyOv7AUJHJc1CsSDVYr9J0y2MwU,25768
8
- reykit/rmonkey.py,sha256=9AeZRVoPuagV8j6Z-f02zbQFAYUUxeoyqYl7cJZ7RAE,7855
8
+ reykit/rmonkey.py,sha256=MJ_levUBl_oqkx8UoWbNwrRBGPWGwpfAh0B25tESFUk,7863
9
9
  reykit/rnet.py,sha256=McW4fX-omkD4_2BpLISHt2hpwIxK7EfDA5c6j3gn3E4,16874
10
10
  reykit/rnum.py,sha256=VKICD64mEfiStAGWaxg3kzQjf7TTqiSBNe9LCpM9MLo,3623
11
11
  reykit/ros.py,sha256=J6YxNbOceMhHwVKDugx5Wd-KFliRtlhFEVVcCAaE_So,47847
@@ -15,14 +15,14 @@ reykit/rschedule.py,sha256=jy6hxaIugyjSpUdQhPgCuubAZmRzKxHu4Nz3xM8Gid8,14696
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.85.dist-info/METADATA,sha256=qcvtYF2xh8J2w_h866sFgaeMbBSa5fLcAVfP6jutfOs,1872
26
- reykit-1.1.85.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- reykit-1.1.85.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
28
- reykit-1.1.85.dist-info/RECORD,,
25
+ reykit-1.1.87.dist-info/METADATA,sha256=OUoXVFoHQkUt-zHsfdOnzWl6RYkflFuxuEqmZqunvE4,1872
26
+ reykit-1.1.87.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ reykit-1.1.87.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
28
+ reykit-1.1.87.dist-info/RECORD,,