Skip to content

Commit d8ebb58

Browse files
Fix linting issues
1 parent 7ca37c5 commit d8ebb58

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/test_pixelmask_collection.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,14 @@ def test_apply_to_eitdata_branch():
337337
eit_data_mock.pixel_impedance = np.array([[1.0, 2.0], [3.0, 4.0]])
338338

339339
# Ensure .apply() on a PixelMask returns an EITData instance (or mock)
340-
def mock_apply(self, data, **kwargs):
340+
def mock_apply(
341+
_self: "PixelMaskCollection",
342+
_data: "EITData | np.ndarray | PixelMap",
343+
*,
344+
_label: str | None = None,
345+
**_kwargs: object,
346+
) -> EITData:
347+
"""Mock apply method for PixelMaskCollection."""
341348
return MagicMock(spec=EITData)
342349

343350
# Patch PixelMask.apply for this test

0 commit comments

Comments
 (0)