Skip to content

Commit

Permalink
ignore mypy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 committed Sep 27, 2023
1 parent 3443def commit 5e9e428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doctr/transforms/modules/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def extra_repr(self) -> str:

def __call__(self, img: Any, target: Optional[np.ndarray] = None) -> Union[Any, Tuple[Any, np.ndarray]]:
if random.random() < self.p:
return self.transform(img) if target is None else self.transform(img, target)
return self.transform(img) if target is None else self.transform(img, target) # type: ignore[call-arg]

Check warning on line 211 in doctr/transforms/modules/base.py

View check run for this annotation

Codecov / codecov/patch

doctr/transforms/modules/base.py#L211

Added line #L211 was not covered by tests
return img if target is None else (img, target)


Expand Down

0 comments on commit 5e9e428

Please sign in to comment.