Corrected argument types by radarhere · Pull Request #8681 · python-pillow/Pillow
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Conversation
This is part of #8362 - I'm hoping to break down that PR into easier-to-review chunks.
-
should use a list, as per
| def remap_palette( | |
| self, dest_map: list[int], source_palette: bytes | bytearray | None = None | |
| ) -> Image: |
-
should use a bytestring, as perdef load(self, data: bytes) -> None: -
should use an int (or None) for the second argument, as per
im.resize((10, 10), "unknown") 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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters