Skip to content

Commit

Permalink
Fix np.ndarray typing
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller authored and anibali committed Mar 13, 2024
1 parent 3fcd2ca commit 5d5404c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def new(webp_data: WebPData, dec_opts: Optional[WebPAnimDecoderOptions] = None)

def imwrite(
file_path: str,
arr: "np.ndarray[Any, Any]",
arr: "np.ndarray[Any, np.dtype[np.uint8]]",
*args: Any,
pilmode: Optional[str] = None,
**kwargs: Any) -> None:
Expand Down Expand Up @@ -573,7 +573,7 @@ def _mimwrite_pics(

def mimwrite(
file_path: str,
arrs: List[np.ndarray[Any, Any]],
arrs: "List[np.ndarray[Any, np.dtype[np.uint8]]]",
*args: Any,
fps: float = 30.0,
pilmode: Optional[str] = None,
Expand Down

0 comments on commit 5d5404c

Please sign in to comment.