pythonic-fp-numpy 1.1.0__tar.gz → 6.0.0__tar.gz

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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythonic-fp-numpy
3
- Version: 1.1.0
3
+ Version: 6.0.0
4
4
  Summary: FP tools for Numpy
5
5
  Keywords: numpy,ndarray,hashable,wrap
6
6
  Author-email: "Geoffrey R. Scheller" <geoffrey@scheller.com>
@@ -17,8 +17,8 @@ Classifier: Typing :: Typed
17
17
  License-File: LICENSE
18
18
  Requires-Dist: numpy>=2.3.4
19
19
  Project-URL: Changelog, https://github.com/grscheller/pythonic-fp-numpy/blob/main/CHANGELOG.md
20
- Project-URL: Documentation, https://grscheller.github.io/pythonic-fp-numpy/release/html/
21
- Project-URL: Homepage, https://grscheller.github.io/pythonic-fp/
20
+ Project-URL: Documentation, https://grscheller.github.io/pythonic-fp-numpy
21
+ Project-URL: Homepage, https://grscheller.github.io/pythonic-fp
22
22
  Project-URL: Source, https://github.com/grscheller/pythonic-fp-numpy
23
23
 
24
24
  # Pythonic FP - FP Numpy
@@ -28,13 +28,13 @@ Python package implementing functional programming tools for NumPy.
28
28
  PyPI project
29
29
  [pythonic-fp-numpy](https://pypi.org/project/pythonic-fp-numpy).
30
30
  Part of the
31
- [pythonic-fp](https://grscheller.github.io/pythonic-fp/)
31
+ [pythonic-fp](https://grscheller.github.io/pythonic-fp)
32
32
  PyPI projects.
33
33
 
34
34
  ## Documentation
35
35
 
36
36
  Documentation and other links for this project are hosted on
37
- [GitHub Pages](https://grscheller.github.io/pythonic-fp/projects/numpy.html).
37
+ [GitHub Pages](https://grscheller.github.io/pythonic-fp-numpy).
38
38
 
39
39
  ### Modules
40
40
 
@@ -5,13 +5,13 @@ Python package implementing functional programming tools for NumPy.
5
5
  PyPI project
6
6
  [pythonic-fp-numpy](https://pypi.org/project/pythonic-fp-numpy).
7
7
  Part of the
8
- [pythonic-fp](https://grscheller.github.io/pythonic-fp/)
8
+ [pythonic-fp](https://grscheller.github.io/pythonic-fp)
9
9
  PyPI projects.
10
10
 
11
11
  ## Documentation
12
12
 
13
13
  Documentation and other links for this project are hosted on
14
- [GitHub Pages](https://grscheller.github.io/pythonic-fp/projects/numpy.html).
14
+ [GitHub Pages](https://grscheller.github.io/pythonic-fp-numpy).
15
15
 
16
16
  ### Modules
17
17
 
@@ -4,10 +4,10 @@ build-backend = "flit_core.buildapi"
4
4
 
5
5
  [project]
6
6
  name = "pythonic-fp-numpy"
7
- version = "1.1.0"
7
+ version = "6.0.0"
8
8
  description = "FP tools for Numpy"
9
9
  readme = "README.md"
10
- requires-python = ">=3.14" # floor: PEP 649/749 deferred annotations — class-level self-reference possible NameErrors on <3.14
10
+ requires-python = ">=3.14" # floor: PEP 649/749 deferred annotations — class-level self-reference NameErrors on <3.14
11
11
  authors = [
12
12
  { name = "Geoffrey R. Scheller", email = "geoffrey@scheller.com" },
13
13
  ]
@@ -33,8 +33,8 @@ dependencies = [
33
33
 
34
34
  [project.urls]
35
35
  Changelog = "https://github.com/grscheller/pythonic-fp-numpy/blob/main/CHANGELOG.md"
36
- Documentation ="https://grscheller.github.io/pythonic-fp-numpy/release/html/"
37
- Homepage = "https://grscheller.github.io/pythonic-fp/"
36
+ Documentation ="https://grscheller.github.io/pythonic-fp-numpy"
37
+ Homepage = "https://grscheller.github.io/pythonic-fp"
38
38
  Source = "https://github.com/grscheller/pythonic-fp-numpy"
39
39
 
40
40
  [dependency-groups]
@@ -70,10 +70,15 @@ testpaths = ["tests/"]
70
70
  explicit_package_bases = true
71
71
  local_partial_types = true
72
72
  namespace_packages = true
73
+ strict = true
73
74
  warn_redundant_casts = true
74
75
  warn_return_any = true
75
76
  warn_unused_configs = true
76
77
 
78
+ [[tool.mypy.overrides]]
79
+ module = ["tests.*"]
80
+ strict_equality = false
81
+
77
82
  [tool.ruff]
78
83
  target-version = "py314"
79
84
 
@@ -13,7 +13,8 @@
13
13
  # limitations under the License.
14
14
 
15
15
  from abc import ABC, abstractmethod
16
- from enum import auto, Enum
16
+ from enum import Enum, auto
17
+
17
18
  import numpy as np
18
19
  import numpy.typing as npt
19
20
 
@@ -75,7 +76,7 @@ class HWrapNDArray(ABC):
75
76
 
76
77
  """
77
78
 
78
- __slots__ = '_ndarray', '_type', '_shape', '_hash'
79
+ __slots__ = '_hash', '_ndarray', '_shape', '_type'
79
80
 
80
81
  def __init__(self, ndarray: npt.NDArray[np.generic]) -> None:
81
82
  """
@@ -127,7 +128,7 @@ class HWrapNDArray(ABC):
127
128
  - Never make the underlying NDArray writable!!!
128
129
 
129
130
  """
130
- return np.array(self._ndarray)
131
+ return np.array(iter(self._ndarray))
131
132
 
132
133
  def __hash__(self) -> int:
133
134
  """
@@ -185,7 +186,7 @@ class HWrapNDArray(ABC):
185
186
  Return a copy of the wrapped NDArray.
186
187
 
187
188
  """
188
- return np.array(self._ndarray, copy=True)
189
+ return np.array(iter(self._ndarray), copy=True)
189
190
 
190
191
 
191
192
  class HWrapNDArrayNumber(HWrapNDArray):