reykit 1.1.77__py3-none-any.whl → 1.1.79__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/rnet.py CHANGED
@@ -353,7 +353,7 @@ def request(
353
353
  item_data, item_headers = value, {}
354
354
  if type(item_data) == str:
355
355
  file = File(item_data)
356
- data = file.bytes
356
+ item_data = file.bytes
357
357
  item_headers.setdefault('filename', file.name_suffix)
358
358
  if type(item_data) == bytes:
359
359
  if 'Content-Type' not in item_headers:
reykit/rnum.py CHANGED
@@ -64,7 +64,6 @@ def digits(number: int | float) -> tuple[int, int]:
64
64
  int_digits = len(number_str)
65
65
  dec_digits = 0
66
66
  else:
67
- number = int(number)
68
67
  number_str = str(number)
69
68
  int_str, dec_str = number_str.split('.')
70
69
  int_digits = len(int_str)
reykit/ros.py CHANGED
@@ -1947,8 +1947,13 @@ class FileStore(Base):
1947
1947
  def __make_dir(self) -> None:
1948
1948
  """
1949
1949
  Make cache directory and subdirectories.
1950
+ When root directory exists, then not make.
1950
1951
  """
1951
1952
 
1953
+ # Exist.
1954
+ if self.folder:
1955
+ return
1956
+
1952
1957
  # Handle parameter.
1953
1958
  chars = '0123456789abcdef'
1954
1959
  subdir_names = [
reykit/rwrap.py CHANGED
@@ -38,8 +38,8 @@ __all__ = (
38
38
  )
39
39
 
40
40
 
41
- type Decorated = Callable
42
- type Decorator = Callable[..., Decorated]
41
+ type DecoratedCallable = Callable
42
+ type Decorator = Callable[..., DecoratedCallable]
43
43
 
44
44
 
45
45
  def wrap_wrap(decorator: Decorator | None = None) -> Decorator:
@@ -82,13 +82,13 @@ def wrap_wrap(decorator: Decorator | None = None) -> Decorator:
82
82
 
83
83
  # Decorate Decorator.
84
84
  @overload
85
- def _wrap(func: Callable, **wrap_kwargs: Any) -> Decorated: ...
85
+ def _wrap(func: Callable, **wrap_kwargs: Any) -> DecoratedCallable: ...
86
86
 
87
87
  @overload
88
88
  def _wrap(**wrap_kwargs: Any) -> Decorator: ...
89
89
 
90
90
  @functools_wraps(decorator)
91
- def _wrap(func: Callable | None = None, **wrap_kwargs: Any) -> Decorated | Decorator:
91
+ def _wrap(func: Callable | None = None, **wrap_kwargs: Any) -> DecoratedCallable | Decorator:
92
92
  """
93
93
  Decorated decorator.
94
94
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reykit
3
- Version: 1.1.77
3
+ Version: 1.1.79
4
4
  Summary: Kit method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reykit/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -6,9 +6,9 @@ reykit/remail.py,sha256=l4HGKXdfHNBxyBT3YxeZyQhfecbElqTqSAGInwWhap8,6723
6
6
  reykit/rimage.py,sha256=lNN2iMpvSMqh-nPTpxrA9yHy43EA5WoYdxKYhqPwMgk,6154
7
7
  reykit/rlog.py,sha256=TRAWaVG9KTgzeNjN-FXkcvBmvq1IhICgawllQEGoUdg,25745
8
8
  reykit/rmonkey.py,sha256=Dj2GBzBDFXbo0Z-5f8Zep4dfbaIw1bo1FUmC31xvDuk,7929
9
- reykit/rnet.py,sha256=ql1L-QCoa_nZ2Vp8cpZrWl4AoxfZq9dhPdistiAdM64,17767
10
- reykit/rnum.py,sha256=PhG4V_BkVfCJUsbpMDN1umGZly1Hsus80TW8bpyBtyY,3653
11
- reykit/ros.py,sha256=Gs_g8d-RVBfBWxj6V2bLHzhYc0CrLZ5Nj09djmCHOJw,47756
9
+ reykit/rnet.py,sha256=YvoLffHcMK43GMoXKQXDTHFP9fiVTH5uzmN-glRBuFY,17772
10
+ reykit/rnum.py,sha256=VKICD64mEfiStAGWaxg3kzQjf7TTqiSBNe9LCpM9MLo,3623
11
+ reykit/ros.py,sha256=O5xAqVR1S5pGU-ryKh6JFN9ztO-GNMl_83fWoh75zOY,47873
12
12
  reykit/rrand.py,sha256=4VwooITgox54_GonELcJfcIpStDi-UJchpnyWKnyeIA,8606
13
13
  reykit/rre.py,sha256=1qva7xatKVE9qC2j7IujjXSM59qxHWwTYpiizFFQ8Xo,6024
14
14
  reykit/rschedule.py,sha256=HuQRSNF6yd397P9knIX9-z8Ii1tUXFUL_-zxTIkxir0,14804
@@ -18,11 +18,11 @@ reykit/rtable.py,sha256=UQ-JlwjssMR3gY1iY-VGQEKQ5_BZabpJy6TL7Fx19c4,12200
18
18
  reykit/rtask.py,sha256=NUTngUUDUZy3TqEHiuiKy17FcE0F1zS118KnKTsBjng,22838
19
19
  reykit/rtext.py,sha256=cWHy19lDcJvpX7LU95kmRVsDimpAUaz5TbKC1h83gB4,13254
20
20
  reykit/rtime.py,sha256=lsSKaYFmYXlDN18yj2fLVTKSruzgygl8icW6_Fl42Xk,17807
21
- reykit/rwrap.py,sha256=FEmeK_fboJ-OyXeJf8bilc7U2ph8xIbZGNHb6fLCy2c,15063
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.77.dist-info/METADATA,sha256=Db5CuuhZqvh1VfqsCJjyi0cx1P0cQAc0byTkAUTT0FI,1872
26
- reykit-1.1.77.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- reykit-1.1.77.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
28
- reykit-1.1.77.dist-info/RECORD,,
25
+ reykit-1.1.79.dist-info/METADATA,sha256=pBxm9A0_LArfk8xX1X3AA6BoHpO02GyxERb4YwTNAMM,1872
26
+ reykit-1.1.79.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ reykit-1.1.79.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
28
+ reykit-1.1.79.dist-info/RECORD,,