Corrected argument types by radarhere · Pull Request #8681 · python-pillow/Pillow

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

@radarhere

This is part of #8362 - I'm hoping to break down that PR into easier-to-review chunks.


  1. should use a list, as per
def remap_palette(
self, dest_map: list[int], source_palette: bytes | bytearray | None = None
) -> Image:

  1. should use a bytestring, as per
    def load(self, data: bytes) -> None:
  2. im.resize((10, 10), "unknown")
    should use an int (or None) for the second argument, as per
    def resize(
    self,
    size: tuple[int, int] | list[int] | NumpyArray,
    resample: int | None = None,
    box: tuple[float, float, float, float] | None = None,
    reducing_gap: float | None = None,
    ) -> Image:

Labels

2 participants

@radarhere @hugovk