Skip to content

Commit

Permalink
Merge pull request #80 from jorenham/stubtest/scipy.stats
Browse files Browse the repository at this point in the history
fix `scipy.stats` stubtest
  • Loading branch information
jorenham authored Oct 13, 2024
2 parents 0a99f58 + 9d82261 commit 3026bf6
Show file tree
Hide file tree
Showing 57 changed files with 3,071 additions and 1,115 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
# "scipy.sparse",
"scipy.spatial",
"scipy.special",
# "scipy.stats",
"scipy.stats",
]
steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,21 @@ pip install scipy-stubs
| `cluster` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon: |
| `constants` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon_with_face: |
| `datasets` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon_with_face: |
| `fft` | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :waxing_crescent_moon: |
| `fftpack` | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :waxing_crescent_moon: |
| `fft` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :waxing_crescent_moon: |
| `fftpack` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :waxing_crescent_moon: |
| `integrate` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :waxing_gibbous_moon: |
| `interpolate` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :first_quarter_moon: |
| `io` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon: |
| `linalg` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :waxing_gibbous_moon: |
| ~`misc`~ | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon: |
| `ndimage` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :full_moon: |
| `odr` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :waxing_crescent_moon: |
| `optimize` | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :first_quarter_moon: |
| `optimize` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :first_quarter_moon: |
| `signal` | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :waxing_crescent_moon: |
| `sparse` | :heavy_check_mark: | :x: | :x: | :x: | :waxing_crescent_moon: |
| `spatial` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :waxing_gibbous_moon: |
| `special` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :first_quarter_moon: |
| `stats` | :heavy_check_mark: | :x: | :x: | :x: | :first_quarter_moon: |
| `stats` | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :waxing_gibbous_moon: |

## Version Compatibility

Expand Down
5 changes: 4 additions & 1 deletion scipy-stubs/_typing.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Helper types for internal use (type-check only).
# NOTE(scipy-stubs): This ia a module only exists `if typing.TYPE_CHECKING: ...`

from os import PathLike
from collections.abc import Callable, Sequence
from typing import IO, Any, Literal, Protocol, TypeAlias, type_check_only
Expand All @@ -10,6 +11,7 @@ import optype.numpy as onpt

__all__ = [
"RNG",
"Alternative",
"AnyBool",
"AnyChar",
"AnyComplex",
Expand Down Expand Up @@ -74,6 +76,7 @@ CorrelateMode: TypeAlias = Literal["valid", "same", "full"]

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

# used in `scipy.linalg.blas` and `scipy.linalg.lapack`
@type_check_only
Expand Down
Loading

0 comments on commit 3026bf6

Please sign in to comment.