Skip to content

Commit

Permalink
Fix type spec
Browse files Browse the repository at this point in the history
  • Loading branch information
scaramallion committed Jun 17, 2024
1 parent a0134b6 commit f20f62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylibjpeg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __call__(self, src: bytes, **kwargs: Any) -> np.ndarray:


class Encoder(Protocol):
def __call__(self, src: np.ndarray | bytes, **kwargs: Any) -> Union[bytes, bytearray]:
def __call__(self, src: Union[np.ndarray, bytes], **kwargs: Any) -> Union[bytes, bytearray]:
... # pragma: no cover


Expand Down

0 comments on commit f20f62c

Please sign in to comment.