Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 26, 2024
1 parent 8dc36fe commit f59c072
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PIL/ImagePalette.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ def save(self, fp: str | IO[str]) -> None:

def raw(rawmode, data: Sequence[int] | bytes | bytearray) -> ImagePalette:
from . import Image

if rawmode in Image._DEPRECATED_RAWMODES:
deprecate(

Check warning on line 214 in src/PIL/ImagePalette.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/ImagePalette.py#L214

Added line #L214 was not covered by tests
f"rawmode {rawmode}",
Expand Down

0 comments on commit f59c072

Please sign in to comment.