Skip to content

Commit 3026bf6

Browse files
authored
Merge pull request #80 from jorenham/stubtest/scipy.stats
fix `scipy.stats` stubtest
2 parents 0a99f58 + 9d82261 commit 3026bf6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3071
-1115
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
# "scipy.sparse",
9393
"scipy.spatial",
9494
"scipy.special",
95-
# "scipy.stats",
95+
"scipy.stats",
9696
]
9797
steps:
9898
- uses: actions/checkout@v4

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,21 @@ pip install scipy-stubs
8080
| `cluster` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon: |
8181
| `constants` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon_with_face: |
8282
| `datasets` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon_with_face: |
83-
| `fft` | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :waxing_crescent_moon: |
84-
| `fftpack` | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :waxing_crescent_moon: |
83+
| `fft` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :waxing_crescent_moon: |
84+
| `fftpack` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :waxing_crescent_moon: |
8585
| `integrate` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :waxing_gibbous_moon: |
8686
| `interpolate` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :first_quarter_moon: |
8787
| `io` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon: |
8888
| `linalg` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :waxing_gibbous_moon: |
8989
| ~`misc`~ | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon: |
9090
| `ndimage` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon: |
9191
| `odr` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :waxing_crescent_moon: |
92-
| `optimize` | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :first_quarter_moon: |
92+
| `optimize` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :first_quarter_moon: |
9393
| `signal` | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :waxing_crescent_moon: |
9494
| `sparse` | :heavy_check_mark: | :x: | :x: | :x: | :waxing_crescent_moon: |
9595
| `spatial` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :waxing_gibbous_moon: |
9696
| `special` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :first_quarter_moon: |
97-
| `stats` | :heavy_check_mark: | :x: | :x: | :x: | :first_quarter_moon: |
97+
| `stats` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :waxing_gibbous_moon: |
9898

9999
## Version Compatibility
100100

scipy-stubs/_typing.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Helper types for internal use (type-check only).
1+
# NOTE(scipy-stubs): This ia a module only exists `if typing.TYPE_CHECKING: ...`
2+
23
from os import PathLike
34
from collections.abc import Callable, Sequence
45
from typing import IO, Any, Literal, Protocol, TypeAlias, type_check_only
@@ -10,6 +11,7 @@ import optype.numpy as onpt
1011

1112
__all__ = [
1213
"RNG",
14+
"Alternative",
1315
"AnyBool",
1416
"AnyChar",
1517
"AnyComplex",
@@ -74,6 +76,7 @@ CorrelateMode: TypeAlias = Literal["valid", "same", "full"]
7476

7577
# scipy literals
7678
NanPolicy: TypeAlias = Literal["raise", "propagate", "omit"]
79+
Alternative: TypeAlias = Literal["two-sided", "less", "greater"]
7780

7881
# used in `scipy.linalg.blas` and `scipy.linalg.lapack`
7982
@type_check_only

0 commit comments

Comments
 (0)