Skip to content

Commit c0b132f

Browse files
committed
TYP: some ignores for pyrefly
1 parent b38ea3f commit c0b132f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_dtype_propagation(self, xp: ModuleType, library: Backend):
140140
cond,
141141
(x, y),
142142
self.f1,
143-
lambda x, y: mxp.astype(x - y, xp.int64), # pyright: ignore[reportArgumentType]
143+
lambda x, y: mxp.astype(x - y, xp.int64), # pyright: ignore[reportArgumentType] # pyrefly: ignore[bad-argument-type]
144144
)
145145
assert actual.dtype == xp.int64
146146

tests/test_lazy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,6 @@ def f(x: Array) -> Array:
452452
with pytest.raises(ValueError, match="multiple shapes but only one dtype"):
453453
_ = lazy_apply(f, x, shape=[(1,), (2,)], dtype=np.int32) # type: ignore[call-overload] # pyright: ignore[reportCallIssue,reportArgumentType]
454454
with pytest.raises(ValueError, match="single shape but multiple dtypes"):
455-
_ = lazy_apply(f, x, shape=(1,), dtype=[np.int32, np.int64]) # pyright: ignore[reportCallIssue,reportArgumentType]
455+
_ = lazy_apply(f, x, shape=(1,), dtype=[np.int32, np.int64]) # pyright: ignore[reportCallIssue,reportArgumentType] # pyrefly: ignore[no-matching-overload]
456456
with pytest.raises(ValueError, match="2 shapes and 1 dtypes"):
457457
_ = lazy_apply(f, x, shape=[(1,), (2,)], dtype=[np.int32]) # type: ignore[arg-type] # pyright: ignore[reportCallIssue,reportArgumentType]

0 commit comments

Comments
 (0)