Skip to content

Commit

Permalink
πŸ’š special: fix weird flaky softplus stubtest errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Dec 18, 2024
1 parent abdf36f commit 448ab61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scipy-stubs/special/_basic.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# TODO: pass the literal shape sizes to the shape parameters of the `_zeroes` return types (i.e. 1d arrays)

from collections.abc import Sequence
from typing import Any, Literal as L, TypeAlias, TypeVar, overload
from typing_extensions import Unpack, deprecated
from typing import Any, Literal as L, TypeAlias, overload
from typing_extensions import TypeVar, Unpack, deprecated

import numpy as np
import numpy.typing as npt
Expand Down Expand Up @@ -82,7 +82,7 @@ _tuple2: TypeAlias = tuple[_T0, _T0]
_tuple4: TypeAlias = tuple[_T0, _T1, _T1, _T1]
_tuple8: TypeAlias = tuple[_T0, _T1, _T1, _T1, _T1, _T1, _T1, _T1]

_ArrayT = TypeVar("_ArrayT", bound=onp.Array)
_ArrayT = TypeVar("_ArrayT", bound=np.ndarray[tuple[int, ...], np.dtype[np.generic]])
_SCT = TypeVar("_SCT", bound=np.generic)
_SCT_f = TypeVar("_SCT_f", bound=np.floating[Any])
_SCT_fc = TypeVar("_SCT_fc", bound=np.inexact[Any])
Expand Down

0 comments on commit 448ab61

Please sign in to comment.