Skip to content

Commit 862a950

Browse files
authored
Merge pull request #527 from numpy/basedpyright-1.29.0
2 parents d0f648c + 5b4b3c2 commit 862a950

8 files changed

Lines changed: 677 additions & 663 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ list_and_test = [
6262
]
6363
types = [
6464
{include-group = "pytest"},
65-
"types-setuptools>=78.1.0.20250329",
65+
"types-setuptools>=79.0.0.20250422",
6666
"types-tabulate>=0.9.0.20241207",
6767
]
6868
basedpyright = [
6969
{include-group = "numpy"},
7070
{include-group = "types"},
71-
"basedpyright>=1.28.5",
71+
"basedpyright>=1.29.1",
7272
]
7373
mypy = [
7474
{include-group = "types"},
@@ -175,6 +175,8 @@ reportIgnoreCommentWithoutRule = true
175175
reportImplicitAbstractClass = true
176176
reportImplicitRelativeImport = true
177177
reportImplicitStringConcatenation = false
178+
reportIncompatibleUnannotatedOverride = true
179+
reportInvalidAbstractMethod = true
178180
reportInvalidCast = true
179181
reportPrivateLocalImportUsage = true
180182
reportUnannotatedClassAttribute = false

src/numpy-stubs/@test/static/reject/scalars.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ np.void("test") # type: ignore[call-overload] # pyright: ignore[reportArgument
3131
np.void("test", dtype=None) # type: ignore[call-overload] # pyright: ignore[reportArgumentType, reportCallIssue]
3232

3333
# pyright doesn't care?
34-
np.generic(1) # type: ignore[abstract]
35-
np.number(1) # type: ignore[abstract]
36-
np.integer(1) # type: ignore[abstract]
37-
np.inexact(1) # type: ignore[abstract]
38-
np.character("test") # type: ignore[abstract]
39-
np.flexible(b"test") # type: ignore[abstract]
34+
np.generic(1) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
35+
np.number(1) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
36+
np.integer(1) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
37+
np.inexact(1) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
38+
np.character("test") # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
39+
np.flexible(b"test") # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
4040

4141
np.float64(value=0.0) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
4242
np.int64(value=0) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]

0 commit comments

Comments
 (0)