haiway 0.12.0__py3-none-any.whl → 0.12.1__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.
@@ -1,4 +1,4 @@
1
- from collections.abc import Mapping, Sequence, Set
1
+ from collections.abc import Iterable, Mapping, Set
2
2
  from typing import overload
3
3
 
4
4
  __all__ = [
@@ -11,34 +11,34 @@ __all__ = [
11
11
 
12
12
  @overload
13
13
  def as_list[T](
14
- collection: Sequence[T],
14
+ collection: Iterable[T],
15
15
  /,
16
16
  ) -> list[T]: ...
17
17
 
18
18
 
19
19
  @overload
20
20
  def as_list[T](
21
- collection: Sequence[T] | None,
21
+ collection: Iterable[T] | None,
22
22
  /,
23
23
  ) -> list[T] | None: ...
24
24
 
25
25
 
26
26
  def as_list[T](
27
- collection: Sequence[T] | None,
27
+ collection: Iterable[T] | None,
28
28
  /,
29
29
  ) -> list[T] | None:
30
30
  """
31
- Converts any given Sequence into a list.
31
+ Converts any given Iterable into a list.
32
32
 
33
33
  Parameters
34
34
  ----------
35
- collection : Sequence[T] | None
36
- The input collection to be converted.
35
+ collection : Iterable[T] | None
36
+ The input to be converted.
37
37
 
38
38
  Returns
39
39
  -------
40
40
  list[T] | None
41
- A new list containing all elements of the input collection,\
41
+ A new list containing all elements of the input,\
42
42
  or the original list if it was already one.
43
43
  None if no value was provided.
44
44
  """
@@ -55,34 +55,34 @@ def as_list[T](
55
55
 
56
56
  @overload
57
57
  def as_tuple[T](
58
- collection: Sequence[T],
58
+ collection: Iterable[T],
59
59
  /,
60
60
  ) -> tuple[T, ...]: ...
61
61
 
62
62
 
63
63
  @overload
64
64
  def as_tuple[T](
65
- collection: Sequence[T] | None,
65
+ collection: Iterable[T] | None,
66
66
  /,
67
67
  ) -> tuple[T, ...] | None: ...
68
68
 
69
69
 
70
70
  def as_tuple[T](
71
- collection: Sequence[T] | None,
71
+ collection: Iterable[T] | None,
72
72
  /,
73
73
  ) -> tuple[T, ...] | None:
74
74
  """
75
- Converts any given Sequence into a tuple.
75
+ Converts any given Iterable into a tuple.
76
76
 
77
77
  Parameters
78
78
  ----------
79
79
  collection : Sequence[T] | None
80
- The input collection to be converted.
80
+ The input to be converted.
81
81
 
82
82
  Returns
83
83
  -------
84
84
  tuple[T] | None
85
- A new tuple containing all elements of the input collection,\
85
+ A new tuple containing all elements of the input,\
86
86
  or the original tuple if it was already one.
87
87
  None if no value was provided.
88
88
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haiway
3
- Version: 0.12.0
3
+ Version: 0.12.1
4
4
  Summary: Framework for dependency injection and state management within structured concurrency model.
5
5
  Project-URL: Homepage, https://miquido.com
6
6
  Project-URL: Repository, https://github.com/miquido/haiway.git
@@ -29,14 +29,14 @@ haiway/types/frozen.py,sha256=CZhFCXnWAKEhuWSfILxA8smfdpMd5Ku694ycfLh98R8,76
29
29
  haiway/types/missing.py,sha256=rDnyA2wxPkTbJl0L-zbo0owp7IJ04xkCIp6xD6wh8NI,1712
30
30
  haiway/utils/__init__.py,sha256=YBq9hYhrHFB-4d_M53A620-2KEz5SMU31GDBW6gXFnQ,804
31
31
  haiway/utils/always.py,sha256=2abp8Lm9rQkrfS3rm1Iqhb-IcWyVfH1BULab3KMxgOw,1234
32
- haiway/utils/collections.py,sha256=pKHZhXqTMcOth7gV6mXcC5WcSyBl70MmVIELbDSmMoA,3320
32
+ haiway/utils/collections.py,sha256=IzD-XSEyngKyzLTNG9sr7QjXIneoAzi3oRsDmbRHtzU,3276
33
33
  haiway/utils/env.py,sha256=-hI4CgLkzdyueuECVjm-TfR3lQjE2bDsc72w7vNC4nQ,5339
34
34
  haiway/utils/freezing.py,sha256=K34ZIMzbkpgkHKH-KF73plEbXExsajNRkRTYp9nJEf4,620
35
35
  haiway/utils/logs.py,sha256=oDsc1ZdqKDjlTlctLbDcp9iX98Acr-1tdw-Pyg3DElo,1577
36
36
  haiway/utils/mimic.py,sha256=BkVjTVP2TxxC8GChPGyDV6UXVwJmiRiSWeOYZNZFHxs,1828
37
37
  haiway/utils/noop.py,sha256=qgbZlOKWY6_23Zs43OLukK2HagIQKRyR04zrFVm5rWI,344
38
38
  haiway/utils/queue.py,sha256=Tk1bXvuNbEgapeC3-h_PYBASqVjhEoL8mUvtJnM29xI,4000
39
- haiway-0.12.0.dist-info/METADATA,sha256=Jh6XHQuZ9lJP851DbdhqZYDvLJKu6Wx0gR4jwWk6Pdk,3857
40
- haiway-0.12.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
- haiway-0.12.0.dist-info/licenses/LICENSE,sha256=GehQEW_I1pkmxkkj3NEa7rCTQKYBn7vTPabpDYJlRuo,1063
42
- haiway-0.12.0.dist-info/RECORD,,
39
+ haiway-0.12.1.dist-info/METADATA,sha256=9FgAnUCIw62Vr7u8MOmDbriyyURb-5aOQVSjv1qwMs0,3857
40
+ haiway-0.12.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
+ haiway-0.12.1.dist-info/licenses/LICENSE,sha256=GehQEW_I1pkmxkkj3NEa7rCTQKYBn7vTPabpDYJlRuo,1063
42
+ haiway-0.12.1.dist-info/RECORD,,