pythonic-fp.queues 5.2.0__py3-none-any.whl → 6.0.0__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.
pythonic_fp/queues/de.py CHANGED
@@ -14,6 +14,7 @@
14
14
 
15
15
  from collections.abc import Callable, Iterable, Iterator
16
16
  from typing import cast, overload
17
+
17
18
  from pythonic_fp.circulararray.auto import CA
18
19
  from pythonic_fp.fptools.maybe import MayBe
19
20
 
@@ -138,7 +139,7 @@ class DEQueue[D]:
138
139
  """
139
140
  return '>< ' + ' | '.join(map(str, self)) + ' ><'
140
141
 
141
- def copy(self) -> 'DEQueue[D]':
142
+ def copy(self) -> DEQueue[D]:
142
143
  """
143
144
  .. admonition:: Copy
144
145
 
@@ -273,7 +274,7 @@ class DEQueue[D]:
273
274
  return MayBe(cast(R, self._ca.foldr(cast(Callable[[D, D], D], f)))) # R = D
274
275
  return MayBe(self._ca.foldr(f, start))
275
276
 
276
- def map[U](self, f: Callable[[D], U]) -> 'DEQueue[U]':
277
+ def map[U](self, f: Callable[[D], U]) -> DEQueue[U]:
277
278
  """
278
279
  .. admonition:: Map
279
280
 
@@ -14,6 +14,7 @@
14
14
 
15
15
  from collections.abc import Callable, Iterable, Iterator
16
16
  from typing import cast, overload
17
+
17
18
  from pythonic_fp.circulararray.auto import CA
18
19
  from pythonic_fp.fptools.maybe import MayBe
19
20
 
@@ -126,7 +127,7 @@ class FIFOQueue[D]:
126
127
  """
127
128
  return '<< ' + ' < '.join(map(str, self)) + ' <<'
128
129
 
129
- def copy(self) -> 'FIFOQueue[D]':
130
+ def copy(self) -> FIFOQueue[D]:
130
131
  """
131
132
  .. admonition:: Copy
132
133
 
@@ -213,7 +214,7 @@ class FIFOQueue[D]:
213
214
  return MayBe(cast(T, self._ca.foldl(cast(Callable[[D, D], D], f)))) # T = D
214
215
  return MayBe(self._ca.foldl(f, start))
215
216
 
216
- def map[U](self, f: Callable[[D], U]) -> 'FIFOQueue[U]':
217
+ def map[U](self, f: Callable[[D], U]) -> FIFOQueue[U]:
217
218
  """
218
219
  .. admonition:: Map
219
220
 
@@ -14,6 +14,7 @@
14
14
 
15
15
  from collections.abc import Callable, Iterable, Iterator
16
16
  from typing import cast, overload
17
+
17
18
  from pythonic_fp.circulararray.auto import CA
18
19
  from pythonic_fp.fptools.function import swap
19
20
  from pythonic_fp.fptools.maybe import MayBe
@@ -126,7 +127,7 @@ class LIFOQueue[D]:
126
127
  """
127
128
  return '|| ' + ' > '.join(map(str, self)) + ' ><'
128
129
 
129
- def copy(self) -> 'LIFOQueue[D]':
130
+ def copy(self) -> LIFOQueue[D]:
130
131
  """
131
132
  .. admonition:: Copy
132
133
 
@@ -198,7 +199,7 @@ class LIFOQueue[D]:
198
199
  return MayBe(cast(T, self._ca.foldl(cast(Callable[[D, D], D], f)))) # T = D
199
200
  return MayBe(self._ca.foldr(swap(f), start))
200
201
 
201
- def map[U](self, f: Callable[[D], U]) -> 'LIFOQueue[U]':
202
+ def map[U](self, f: Callable[[D], U]) -> LIFOQueue[U]:
202
203
  """
203
204
  .. admonition:: Map
204
205
 
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythonic-fp-queues
3
- Version: 5.2.0
4
- Summary: Queues geared to different use cases.
3
+ Version: 6.0.0
4
+ Summary: Queues useful for different algorithmic use cases.
5
5
  Keywords: queue,fifo,lifo,dqueue
6
6
  Author-email: "Geoffrey R. Scheller" <geoffrey@scheller.com>
7
7
  Requires-Python: >=3.14
8
8
  Description-Content-Type: text/markdown
9
- Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Development Status :: 4 - Beta
10
10
  Classifier: Framework :: Pytest
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: Apache Software License
@@ -15,12 +15,11 @@ Classifier: Programming Language :: Python :: 3.14
15
15
  Classifier: Programming Language :: Python :: 3.15
16
16
  Classifier: Typing :: Typed
17
17
  License-File: LICENSE
18
- Requires-Dist: pythonic-fp-circulararray>=6.2.2,<6.4
19
- Requires-Dist: pythonic-fp-fptools>=6.1,<6.2
20
- Requires-Dist: pythonic-fp-gadgets>=4.5,<6
18
+ Requires-Dist: pythonic-fp-circulararray>=6.4,<7
19
+ Requires-Dist: pythonic-fp-fptools>=6.2,<7
21
20
  Project-URL: Changelog, https://github.com/grscheller/pythonic-fp-queues/blob/main/CHANGELOG.md
22
- Project-URL: Documentation, https://grscheller.github.io/pythonic-fp-queues/release/html/
23
- Project-URL: Homepage, https://grscheller.github.io/pythonic-fp/
21
+ Project-URL: Documentation, https://grscheller.github.io/pythonic-fp-queues
22
+ Project-URL: Homepage, https://grscheller.github.io/pythonic-fp
24
23
  Project-URL: Source, https://github.com/grscheller/pythonic-fp-queues
25
24
 
26
25
  # Pythonic FP - Queues
@@ -30,13 +29,13 @@ Queue-like datastructures.
30
29
  PyPI project
31
30
  [pythonic-fp-queues](https://pypi.org/project/pythonic-fp-queues).
32
31
  Part of the
33
- [pythonic-fp](https://grscheller.github.io/pythonic-fp/)
32
+ [pythonic-fp](https://grscheller.github.io/pythonic-fp)
34
33
  PyPI projects.
35
34
 
36
35
  ## Documentation
37
36
 
38
37
  Documentation and other links for this project are hosted on
39
- [GitHub Pages](https://grscheller.github.io/pythonic-fp/projects/queues.html).
38
+ [GitHub Pages](https://grscheller.github.io/pythonic-fp-queues).
40
39
 
41
40
  | module | class | name |
42
41
  |:------ |:-----:|:---- |
@@ -0,0 +1,9 @@
1
+ pythonic_fp/queues/__init__.py,sha256=NOkkXOQaHmiemvY4Ke5ZdFJCl3_P3bmV87Xz5Y-R9cU,1028
2
+ pythonic_fp/queues/de.py,sha256=vSxWcsTB4w3CnZ2ciqT0oMaYGMm1s8i5thADbRzOkAg,8529
3
+ pythonic_fp/queues/fifo.py,sha256=R29zOr8h4d4v6yONvJG2wAq19K85Ydem6TS9pH6S5Cg,6800
4
+ pythonic_fp/queues/lifo.py,sha256=_WFGLh3OYtm2BI7ndQp9wfEjIq3LoxoC0rth7SnnPKE,6468
5
+ pythonic_fp/queues/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ pythonic_fp_queues-6.0.0.dist-info/licenses/LICENSE,sha256=IJMkVWQUVy-SonK6SMaMotDQ6Zb-lVi2bUTiGp1GUO8,10774
7
+ pythonic_fp_queues-6.0.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
8
+ pythonic_fp_queues-6.0.0.dist-info/METADATA,sha256=GcWgs7qUbudNtnIiukYkDCurXcpF2gh7yB3jFWICYkU,1819
9
+ pythonic_fp_queues-6.0.0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- pythonic_fp/queues/__init__.py,sha256=NOkkXOQaHmiemvY4Ke5ZdFJCl3_P3bmV87Xz5Y-R9cU,1028
2
- pythonic_fp/queues/de.py,sha256=ICPHkGz0JKIk8aLk75ZUSPS6T9jSTynkJ-2A5Sy_iig,8532
3
- pythonic_fp/queues/fifo.py,sha256=qQhv57VuF2QuaRtGJhCtj5qtGPjoGKlQS9RbZIGsvmY,6803
4
- pythonic_fp/queues/lifo.py,sha256=lQAzoCOzQrw3gF2A_GgF_4XkYpNivswPyZS-Qp5bxYw,6471
5
- pythonic_fp/queues/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- pythonic_fp_queues-5.2.0.dist-info/licenses/LICENSE,sha256=IJMkVWQUVy-SonK6SMaMotDQ6Zb-lVi2bUTiGp1GUO8,10774
7
- pythonic_fp_queues-5.2.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
8
- pythonic_fp_queues-5.2.0.dist-info/METADATA,sha256=-PaB9pdP3i3zyHGry3_VT_Yi7Nc8w3DeiB7t3PEJ8aQ,1898
9
- pythonic_fp_queues-5.2.0.dist-info/RECORD,,