Skip to content
Merged
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
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ list_and_test = [
]
types = [
{include-group = "pytest"},
"types-setuptools>=78.1.0.20250329",
"types-setuptools>=79.0.0.20250422",
"types-tabulate>=0.9.0.20241207",
]
basedpyright = [
{include-group = "numpy"},
{include-group = "types"},
"basedpyright>=1.28.5",
"basedpyright>=1.29.1",
]
mypy = [
{include-group = "types"},
Expand Down Expand Up @@ -175,6 +175,8 @@ reportIgnoreCommentWithoutRule = true
reportImplicitAbstractClass = true
reportImplicitRelativeImport = true
reportImplicitStringConcatenation = false
reportIncompatibleUnannotatedOverride = true
reportInvalidAbstractMethod = true
reportInvalidCast = true
reportPrivateLocalImportUsage = true
reportUnannotatedClassAttribute = false
Expand Down
12 changes: 6 additions & 6 deletions src/numpy-stubs/@test/static/reject/scalars.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ np.void("test") # type: ignore[call-overload] # pyright: ignore[reportArgument
np.void("test", dtype=None) # type: ignore[call-overload] # pyright: ignore[reportArgumentType, reportCallIssue]

# pyright doesn't care?
np.generic(1) # type: ignore[abstract]
np.number(1) # type: ignore[abstract]
np.integer(1) # type: ignore[abstract]
np.inexact(1) # type: ignore[abstract]
np.character("test") # type: ignore[abstract]
np.flexible(b"test") # type: ignore[abstract]
np.generic(1) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
np.number(1) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
np.integer(1) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
np.inexact(1) # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
np.character("test") # type: ignore[call-arg] # pyright: ignore[reportCallIssue]
np.flexible(b"test") # type: ignore[call-arg] # pyright: ignore[reportCallIssue]

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