reykit 1.1.8__py3-none-any.whl → 1.1.10__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/rrandom.py CHANGED
@@ -19,10 +19,9 @@ from random import Random
19
19
  from secrets import randbelow as secrets_randbelow
20
20
  from threading import get_ident as threading_get_ident
21
21
 
22
- from .rdata import Element
23
22
  from .rexception import throw
24
23
  from .rnumber import digits
25
- from .rtype import RConfigMeta
24
+ from .rtype import T, RConfigMeta
26
25
 
27
26
 
28
27
  __all__ = (
@@ -134,7 +133,22 @@ class RRandomSeed(object):
134
133
 
135
134
  @overload
136
135
  def randn(
137
- *thresholds: int,
136
+ *,
137
+ precision: None = None
138
+ ) -> int: ...
139
+
140
+ @overload
141
+ def randn(
142
+ high: int = 10,
143
+ *,
144
+ precision: None = None
145
+ ) -> int: ...
146
+
147
+ @overload
148
+ def randn(
149
+ low: int = 0,
150
+ high: int = 10,
151
+ *,
138
152
  precision: None = None
139
153
  ) -> int: ...
140
154
 
@@ -259,23 +273,23 @@ def randb(pr: float = 0.5) -> bool:
259
273
 
260
274
  @overload
261
275
  def randi(
262
- data: Sequence[Element],
276
+ data: Sequence[T],
263
277
  multi: None = None,
264
278
  unique: bool = True
265
- ) -> Element: ...
279
+ ) -> T: ...
266
280
 
267
281
  @overload
268
282
  def randi(
269
283
  data: Sequence,
270
284
  multi: int = None,
271
285
  unique: bool = True
272
- ) -> list[Element]: ...
286
+ ) -> list[T]: ...
273
287
 
274
288
  def randi(
275
289
  data: Sequence,
276
290
  multi: int | None = None,
277
291
  unique: bool = True
278
- ) -> Element | list[Element]:
292
+ ) -> T | list[T]:
279
293
  """
280
294
  Random index data element.
281
295
 
@@ -362,7 +376,7 @@ def randchar(
362
376
  return chars
363
377
 
364
378
 
365
- def randsort(data: Sequence[Element]) -> list[Element]:
379
+ def randsort(data: Sequence[T]) -> list[T]:
366
380
  """
367
381
  Random sorting data.
368
382
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reykit
3
- Version: 1.1.8
3
+ Version: 1.1.10
4
4
  Summary: Rey's kit method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reykit/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -10,7 +10,7 @@ reykit/rmonkey.py,sha256=RqhmKXabl11s2RJaGizpm00Q1yEkul1Je5uxw8_thUk,7584
10
10
  reykit/rmultitask.py,sha256=9UVAg8P85UsLS_exW-e6tZTa_b5r3ceL7LQRDrP8eAw,21981
11
11
  reykit/rnumber.py,sha256=XseLDNLDOt-XYP2P9oDbkKYuHudeSoWzIHsOENO8vvE,3196
12
12
  reykit/ros.py,sha256=UXX7FENgVCTR8m6-53CxzJvmPzHIzC7vLK2vyrkySiw,39096
13
- reykit/rrandom.py,sha256=fMeorpkjWAAtjD2oZCux3tpYuD2RRoBSkWI0M6NPM5Q,9102
13
+ reykit/rrandom.py,sha256=TfQKYXRw379MMRIZYfjBtCkmsartA9thhDIG1fc3tM4,9233
14
14
  reykit/rregex.py,sha256=XTlnDLior8yyncFdrTr9FsVlBcqMXvsWRfpmvQS-BR8,6089
15
15
  reykit/rschedule.py,sha256=7EH_6TdEhwV-T6YyBEGYEcy85I1vTSNutDci-e_veTY,5796
16
16
  reykit/rstdout.py,sha256=vSvD4QjYybNiGnowWLXRU6q1u9ERPjr8YTXgq82eYDU,9648
@@ -24,7 +24,7 @@ reykit/rzip.py,sha256=i6KkmeSWCnq025d-O1mbuCYezNRUhyY9OGVK0CRlNAM,3522
24
24
  reykit/rdll/__init__.py,sha256=vM9V7wSNno-WH9RrxgHTIgCkQm8LmBFoLFO8z7qovNo,306
25
25
  reykit/rdll/rdll_inject.py,sha256=bETl8tywtN1OiQudbA21u6GwBM_bqVX7jbiisNj_JBg,645
26
26
  reykit/rdll/rdll_inject_core.py,sha256=Trgh_pdJs_Lw-Y-0Kkn8kHr4BnilM9dBKnHnX25T_pM,5092
27
- reykit-1.1.8.dist-info/METADATA,sha256=wZLT__rAAqQUxrb8V8i_jr3NardP5g_-xiKldhe9FZ4,1888
28
- reykit-1.1.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
- reykit-1.1.8.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
30
- reykit-1.1.8.dist-info/RECORD,,
27
+ reykit-1.1.10.dist-info/METADATA,sha256=91hZfrvkD0Kf6t5cvqk4XNoGrk-ln1UpFHmacwcDMEk,1889
28
+ reykit-1.1.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
+ reykit-1.1.10.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
30
+ reykit-1.1.10.dist-info/RECORD,,