Skip to content

Commit

Permalink
Remove unused *args
Browse files Browse the repository at this point in the history
  • Loading branch information
anibali committed Jun 9, 2024
1 parent 2525817 commit 5652470
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions webp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,6 @@ def new(webp_data: WebPData, dec_opts: Optional[WebPAnimDecoderOptions] = None)
def imwrite(
file_path: str,
arr: "np.ndarray[Any, np.dtype[np.uint8]]",
*args: Any,
pilmode: Optional[str] = None,
**kwargs: Any) -> None:
"""Encode numpy array image with WebP and save to file.
Expand All @@ -564,7 +563,7 @@ def imwrite(
pic.save(file_path, config)


def imread(file_path: str, *args: Any, pilmode: str = 'RGBA') -> "np.ndarray[Any, np.dtype[np.uint8]]":
def imread(file_path: str, pilmode: str = 'RGBA') -> "np.ndarray[Any, np.dtype[np.uint8]]":
"""Load from file and decode numpy array with WebP.
Args:
Expand Down Expand Up @@ -592,7 +591,6 @@ def imread(file_path: str, *args: Any, pilmode: str = 'RGBA') -> "np.ndarray[Any
def _mimwrite_pics(
file_path: str,
pics: List[WebPPicture],
*args: Any,
fps: float = 30.0,
loop_count: Optional[int] = None,
**kwargs: Any
Expand All @@ -615,7 +613,6 @@ def _mimwrite_pics(
def mimwrite(
file_path: str,
arrs: "List[np.ndarray[Any, np.dtype[np.uint8]]]",
*args: Any,
fps: float = 30.0,
loop_count: Optional[int] = None,
pilmode: Optional[str] = None,
Expand All @@ -638,7 +635,6 @@ def mimwrite(

def mimread(
file_path: str,
*args: Any,
fps: Optional[float] = None,
use_threads: bool = True,
pilmode: str = 'RGBA') -> List["np.ndarray[Any, np.dtype[np.uint8]]"]:
Expand Down

0 comments on commit 5652470

Please sign in to comment.