Skip to content

Commit a9a9d61

Browse files
authored
⬆️ optype 0.14.0 (#899)
2 parents 893edb8 + be37759 commit a9a9d61

File tree

4 files changed

+76
-55
lines changed

4 files changed

+76
-55
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ classifiers = [
3636
"Typing :: Stubs Only",
3737
]
3838
requires-python = ">=3.11"
39-
dependencies = ["optype[numpy]>=0.13.4,<0.14"]
39+
dependencies = ["optype[numpy]>=0.14.0"]
4040

4141
[project.optional-dependencies]
4242
scipy = ["scipy>=1.16.2,<1.17"]

scipy-stubs/differentiate/_differentiate.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class _HessianResult(_RichResult, Generic[_FloatT_co, _ShapeT2_co]):
6868
@overload # 0-d float64
6969
def derivative(
7070
f: _Function00[np.float64],
71-
x: float | np.float64 | npc.integer | onp.CanArray0D[np.float64 | npc.integer],
71+
x: float | onp.CanArray0[np.float64 | npc.integer],
7272
*,
7373
args: tuple[onp.ToScalar, ...] = (),
7474
tolerances: _Tolerances | None = None,
@@ -83,7 +83,7 @@ def derivative(
8383
@overload # 0-d <known>
8484
def derivative(
8585
f: _Function00[_FloatT],
86-
x: _FloatT | onp.CanArray0D[_FloatT],
86+
x: onp.CanArray0[_FloatT],
8787
*,
8888
args: tuple[onp.ToScalar, ...] = (),
8989
tolerances: _Tolerances | None = None,

scipy-stubs/linalg/_special_matrices.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ _Float3ND: TypeAlias = _Array3ND[np.float64]
4343
_Complex2D: TypeAlias = onp.Array2D[np.complex128]
4444
_Complex3ND: TypeAlias = _Array3ND[np.complex128]
4545

46-
_To0D: TypeAlias = _SCT | onp.CanArray0D[_SCT]
46+
_To0D: TypeAlias = onp.CanArray0[_SCT]
4747
_To1D: TypeAlias = Sequence[_To0D[_SCT]] | onp.CanArrayND[_SCT]
4848
_ToStrict1D: TypeAlias = Sequence[_To0D[_SCT]] | onp.CanArray1D[_SCT]
4949
_ToStrict2ND: TypeAlias = onp.SequenceND[_To1D[_SCT]] | onp.CanArrayND[_SCT, onp.AtLeast2D]

0 commit comments

Comments
 (0)