pythonic-fp-circulararray 6.2.1__py3-none-any.whl → 6.2.2__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.
@@ -39,7 +39,7 @@ class CA[X]:
39
39
 
40
40
  """
41
41
 
42
- __slots__ = '_xs', '_cnt', '_cap', '_front', '_rear'
42
+ __slots__ = '_cap', '_cnt', '_front', '_rear', '_xs'
43
43
 
44
44
  def __init__(self, *xs: Iterable[X]) -> None:
45
45
  """
@@ -295,9 +295,9 @@ class CA[X]:
295
295
  @overload
296
296
  def __getitem__(self, idx: int) -> X: ...
297
297
  @overload
298
- def __getitem__(self, idx: slice) -> 'CA[X]': ...
298
+ def __getitem__(self, idx: slice) -> CA[X]: ...
299
299
 
300
- def __getitem__(self, idx: int | slice) -> X | 'CA[X]':
300
+ def __getitem__(self, idx: int | slice) -> X | CA[X]:
301
301
  """
302
302
  .. admonition:: getitem
303
303
 
@@ -669,7 +669,7 @@ class CA[X]:
669
669
  for _ in range(n, 0, -1):
670
670
  self.pushl(self.popr())
671
671
 
672
- def map[Y](self, f: Callable[[X], Y]) -> 'CA[Y]':
672
+ def map[Y](self, f: Callable[[X], Y]) -> CA[Y]:
673
673
  """
674
674
  .. admonition:: Map function over the CA
675
675
 
@@ -686,7 +686,7 @@ class CA[X]:
686
686
  @overload
687
687
  def foldl[L](self, f: Callable[[L, X], L], start: L) -> L: ...
688
688
 
689
- def foldl[L](self, f: Callable[[L, X], L], start: L | NoValue = NoValue()) -> L:
689
+ def foldl[L](self, f: Callable[[L, X], L], start: L | NoValue = nada) -> L:
690
690
  """
691
691
  .. admonition:: Fold left
692
692
 
@@ -38,7 +38,7 @@ class CAF[X]:
38
38
 
39
39
  """
40
40
 
41
- __slots__ = '_xs', '_cnt', '_cap', '_front', '_rear'
41
+ __slots__ = '_cap', '_cnt', '_front', '_rear', '_xs',
42
42
 
43
43
  def __init__(self, *xs: Iterable[X], cap: int = 2) -> None:
44
44
  """
@@ -551,7 +551,7 @@ class CAF[X]:
551
551
  for _ in range(n, 0, -1):
552
552
  self.pushl(self.popr())
553
553
 
554
- def map[Y](self, f: Callable[[X], Y]) -> 'CAF[Y]':
554
+ def map[Y](self, f: Callable[[X], Y]) -> CAF[Y]:
555
555
  """
556
556
  .. admonition:: Map function over the CAF
557
557
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythonic-fp-circulararray
3
- Version: 6.2.1
3
+ Version: 6.2.2
4
4
  Summary: Circular array datastructures.
5
5
  Keywords: auto resizing,circular array,circulararray,dequeue,indexable,pop,push
6
6
  Author-email: "Geoffrey R. Scheller" <geoffrey@scheller.com>
@@ -0,0 +1,8 @@
1
+ pythonic_fp/circulararray/__init__.py,sha256=PJsikfFReHq2QXpmcg_AYeBbuyauGjfJ9bBdc2YNtzo,1016
2
+ pythonic_fp/circulararray/auto.py,sha256=NsW5xbQCAtKiKLkJwJPNDOzY-D2ZNfQItXXaIUU5LHk,23872
3
+ pythonic_fp/circulararray/fixed.py,sha256=ZbrWCR4MWZDKeXvqvlC6uFUwEUWUxM3_6Kon6iGrwTY,19785
4
+ pythonic_fp/circulararray/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ pythonic_fp_circulararray-6.2.2.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
6
+ pythonic_fp_circulararray-6.2.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
7
+ pythonic_fp_circulararray-6.2.2.dist-info/METADATA,sha256=a1g2dAm-sYZnRzHIu-7oxMD-ceqgh7VSTAgvKblQWZ0,2456
8
+ pythonic_fp_circulararray-6.2.2.dist-info/RECORD,,
File without changes
@@ -1,49 +0,0 @@
1
- from collections.abc import Callable, Iterable, Iterator
2
- from typing import overload
3
-
4
- __all__ = ['CA', 'ca']
5
-
6
- class CA[X]:
7
- def __init__(self, *xs: Iterable[X]) -> None: ...
8
- def __bool__(self) -> bool: ...
9
- def __len__(self) -> int: ...
10
- def __iter__(self) -> Iterator[X]: ...
11
- def __reversed__(self) -> Iterator[X]: ...
12
- def __eq__(self, other: object) -> bool: ...
13
- @overload
14
- def __getitem__(self, idx: int) -> X: ...
15
- @overload
16
- def __getitem__(self, idx: slice) -> CA[X]: ...
17
- @overload
18
- def __setitem__(self, idx: int, vals: X) -> None: ...
19
- @overload
20
- def __setitem__(self, idx: slice, vals: Iterable[X]) -> None: ...
21
- @overload
22
- def __delitem__(self, idx: int) -> None: ...
23
- @overload
24
- def __delitem__(self, idx: slice) -> None: ...
25
- def pushl(self, *xs: X) -> None: ...
26
- def pushr(self, *xs: X) -> None: ...
27
- def popl(self) -> X: ...
28
- def popr(self) -> X: ...
29
- def popld(self, default: X) -> X: ...
30
- def poprd(self, default: X) -> X: ...
31
- def poplt(self, maximum: int) -> tuple[X, ...]: ...
32
- def poprt(self, maximum: int) -> tuple[X, ...]: ...
33
- def rotl(self, n: int = 1) -> None: ...
34
- def rotr(self, n: int = 1) -> None: ...
35
- def map[Y](self, f: Callable[[X], Y]) -> CA[Y]: ...
36
- @overload
37
- def foldl[L](self, f: Callable[[X, X], X]) -> X: ...
38
- @overload
39
- def foldl[L](self, f: Callable[[L, X], L], start: L) -> L: ...
40
- @overload
41
- def foldr[R](self, f: Callable[[X, X], X]) -> X: ...
42
- @overload
43
- def foldr[R](self, f: Callable[[X, R], R], start: R) -> R: ...
44
- def capacity(self) -> int: ...
45
- def empty(self) -> None: ...
46
- def fraction_filled(self) -> float: ...
47
- def resize(self, minimum_capacity: int = 2) -> None: ...
48
-
49
- def ca[T](*ts: T) -> CA[T]: ...
@@ -1,39 +0,0 @@
1
- from collections.abc import Callable, Iterable, Iterator
2
- from typing import overload
3
-
4
- __all__ = ['CAF', 'caf']
5
-
6
- class CAF[X]:
7
- def __init__(self, *xs: Iterable[X], cap: int = 2) -> None: ...
8
- def __bool__(self) -> bool: ...
9
- def __len__(self) -> int: ...
10
- def __iter__(self) -> Iterator[X]: ...
11
- def __reversed__(self) -> Iterator[X]: ...
12
- def __eq__(self, other: object) -> bool: ...
13
- def __getitem__(self, idx: int) -> X: ...
14
- def __setitem__(self, idx: int, val: X) -> None: ...
15
- def __delitem__(self, idx: int) -> None: ...
16
- def pushl(self, x: X) -> None: ...
17
- def pushr(self, x: X) -> None: ...
18
- def popl(self) -> X: ...
19
- def popr(self) -> X: ...
20
- def popld(self, default: X) -> X: ...
21
- def poprd(self, default: X) -> X: ...
22
- def poplt(self, maximum: int) -> tuple[X, ...]: ...
23
- def poprt(self, maximum: int) -> tuple[X, ...]: ...
24
- def rotl(self, n: int = 1) -> None: ...
25
- def rotr(self, n: int = 1) -> None: ...
26
- def map[Y](self, f: Callable[[X], Y]) -> CAF[Y]: ...
27
- @overload
28
- def foldl[L](self, f: Callable[[X, X], X]) -> X: ...
29
- @overload
30
- def foldl[L](self, f: Callable[[L, X], L], start: L) -> L: ...
31
- @overload
32
- def foldr[R](self, f: Callable[[X, X], X]) -> X: ...
33
- @overload
34
- def foldr[R](self, f: Callable[[X, R], R], start: R) -> R: ...
35
- def capacity(self) -> int: ...
36
- def empty(self) -> None: ...
37
- def fraction_filled(self) -> float: ...
38
-
39
- def caf[T](*ts: T, cap: int = 2) -> CAF[T]: ...
@@ -1,11 +0,0 @@
1
- pythonic_fp/circulararray/__init__.py,sha256=PJsikfFReHq2QXpmcg_AYeBbuyauGjfJ9bBdc2YNtzo,1016
2
- pythonic_fp/circulararray/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- pythonic_fp/circulararray/auto.py,sha256=xOZV5v_MQJFBz76l4H2zOCFQHDWz7nP90y1P8g7zjF0,23883
4
- pythonic_fp/circulararray/auto.pyi,sha256=M1gGKXsTifzinGTU9UH2LUfEb5-ki_jSFwtzeuXlEfA,1786
5
- pythonic_fp/circulararray/fixed.py,sha256=BoHokzCY-UxFYeVkLAhvw7aeSWGn_ct2WD5IOjE4C3U,19786
6
- pythonic_fp/circulararray/fixed.pyi,sha256=05-A1T91VIhOTAXqUNMQLolM4pMZ2HgEaRHkqg8V9os,1497
7
- pythonic_fp/circulararray/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- pythonic_fp_circulararray-6.2.1.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
9
- pythonic_fp_circulararray-6.2.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
10
- pythonic_fp_circulararray-6.2.1.dist-info/METADATA,sha256=37XgIgjczhdXlI-gDnRJIzB0-bBC7Hy4DQFvT-9iv-M,2456
11
- pythonic_fp_circulararray-6.2.1.dist-info/RECORD,,