Skip to content

Commit

Permalink
Merge pull request #60 from jorenham/typecheck/scipy.cluster
Browse files Browse the repository at this point in the history
fix pyright error in `scipy.cluster`
  • Loading branch information
jorenham authored Oct 9, 2024
2 parents 0a7f316 + e8dab24 commit 40754ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
run: |
targets=(
"__init__.pyi"
"cluster"
"constants"
"datasets"
"integrate"
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ The exact version requirements are specified in the [`pyproject.toml`](pyproject
| `scipy.integrate` | **4: done** |
| `scipy.interpolate` | 2: partial |
| `scipy.io` | **4: done** |
| `scipy.io.arff` | 3: ready |
| `scipy.io.matlab` | 3: ready |
| `scipy.linalg` | **4: done** |
| ~`scipy.misc`~ | **4: done** |
| `scipy.ndimage` | 2: partial |
Expand All @@ -131,9 +129,8 @@ The exact version requirements are specified in the [`pyproject.toml`](pyproject
| `scipy.spatial` | 2: partial |
| `scipy.spatial.distance` | 2: partial |
| `scipy.special` | **4: done** |
| `scipy.special.cython_special` | **4: done** |
| `scipy.stats` | 2: partial |
| `scipy.stats.contingency` | 1: skeleton |
| `scipy.stats.contingency` | 3: ready |
| `scipy.stats.distributions` | **4: done** |
| `scipy.stats.mstats` | 1: skeleton |
| `scipy.stats.qmc` | 2: partial |
Expand Down
2 changes: 1 addition & 1 deletion scipy-stubs/cluster/hierarchy.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class ClusterNode:
def __lt__(self, node: ClusterNode, /) -> bool: ...
def __gt__(self, node: ClusterNode, /) -> bool: ...
@override
def __eq__(self, node: ClusterNode, /) -> bool: ... # type: ignore[override]
def __eq__(self, node: ClusterNode, /) -> bool: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
def get_id(self, /) -> int: ...
def get_count(self, /) -> int: ...
def get_left(self, /) -> ClusterNode: ...
Expand Down

0 comments on commit 40754ae

Please sign in to comment.