Skip to content

Commit

Permalink
Added type hints
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
  • Loading branch information
radarhere and hugovk committed Jan 15, 2024
1 parent c75a93b commit 575edbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -3437,7 +3437,7 @@ def register_open(id, factory, accept=None) -> None:
OPEN[id] = factory, accept


def register_mime(id, mimetype) -> None:
def register_mime(id: str, mimetype: str) -> None:
"""
Registers an image MIME type by populating ``Image.MIME``. This function
should not be used in application code.
Expand All @@ -3452,7 +3452,7 @@ def register_mime(id, mimetype) -> None:
MIME[id.upper()] = mimetype


def register_save(id, driver) -> None:
def register_save(id: str, driver) -> None:
"""
Registers an image save function. This function should not be
used in application code.
Expand Down

0 comments on commit 575edbe

Please sign in to comment.