Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
fail-fast: false
matrix:
py: ["3.11"]
np: ["1.26", "2.0", "2.1", "2.2", "2.3"]
np: ["1.26", "2.0", "2.1", "2.2", "2.3", "2.4"]

steps:
- uses: actions/[email protected]
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
fail-fast: false
matrix:
py: ["3.11", "3.12", "3.13", "3.14"]
np: ["1.26", "2.0", "2.1", "2.2", "2.3"]
np: ["1.26", "2.0", "2.1", "2.2", "2.3", "2.4"]
exclude:
- py: "3.13"
np: "1.26"
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ matches = "scipy-stubs/odr/*.pyi"
errors = { deprecated = "ignore" }

[[tool.pyrefly.sub-config]]
# LSP violations that won't cause type-unsafe behavior, some of which depend on numpy versions
matches = "scipy-stubs/special/_ufuncs.pyi"
errors = { bad-override = "ignore" }

Expand Down Expand Up @@ -219,7 +220,11 @@ include = [
rules = { deprecated = "ignore" }

[[tool.ty.overrides]]
include = ["scipy-stubs/stats/_distn_infrastructure.pyi"]
# LSP violations that won't cause type-unsafe behavior, some of which depend on numpy versions
include = [
"scipy-stubs/stats/_distn_infrastructure.pyi",
"scipy-stubs/special/_ufuncs.pyi",
]
rules = { invalid-method-override = "ignore" }

# repo-review
Expand Down
3 changes: 3 additions & 0 deletions scipy-stubs/special/_ufuncs.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# LSP violations that won't cause type-unsafe behavior, some of which depend on numpy versions

# pyright: reportIncompatibleMethodOverride=false
# mypy: disable-error-code="overload-overlap, override"

Expand Down Expand Up @@ -758,6 +760,7 @@ class _UFunc11f(_UFunc11[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
def __call__(self, x: onp.ToFloat64_ND, /, out: _Out1 = None, **kw: Unpack[_Kw11f]) -> _FloatND: ...
@overload
def __call__(self, x: _ToFloat64OrND, /, out: _Out1[_OutT], **kw: Unpack[_Kw11f]) -> _OutT: ...

#
@override
def at(self, a: _CoFloat64ND, indices: _Indices, /) -> None: ...
Expand Down
Loading
Loading