Skip to content

Commit ac36c52

Browse files
committed
pass ty checks
1 parent 34e3f53 commit ac36c52

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/funlib/geometry/roi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def shape(self) -> Coordinate:
9494
return self.__shape
9595

9696
@shape.setter
97-
def shape(self, shape: Iterable[Optional[int]]) -> None:
97+
def shape(self, shape: Optional[Iterable[Optional[int]]]) -> None:
9898
"""Set the shape of this ROI.
9999
100100
Args:

tests/test_coordinate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ def test_arithmetic():
4646
with pytest.raises(TypeError):
4747
a + "invalid"
4848
with pytest.raises(TypeError):
49-
a - "invalid"
49+
a - "invalid" # type: ignore[operator]
5050
with pytest.raises(TypeError):
5151
a * "invalid"
5252
with pytest.raises(TypeError):
53-
a / "invalid"
53+
a / "invalid" # type: ignore[operator]
5454
with pytest.raises(TypeError):
55-
a // "invalid"
55+
a // "invalid" # type: ignore[operator]
5656
with pytest.raises(AssertionError):
5757
a + c
5858
with pytest.raises(AssertionError):

tests/test_questions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_roi_none_args():
3838
# Old behavior infered dimensionality of offset/shape based on
3939
# given shape/offset as long as one was provided
4040
with pytest.raises(Exception):
41-
R(None, C(1, 2, 3))
41+
R(None, C(1, 2, 3)) # type: ignore[arg-type]
4242

4343

4444
@pytest.mark.xfail

0 commit comments

Comments
 (0)