Added type hints

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2024-01-15 18:25:31 +11:00 committed by GitHub
parent c75a93b9a3
commit 575edbefe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3437,7 +3437,7 @@ def register_open(id, factory, accept=None) -> None:
OPEN[id] = factory, accept 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 Registers an image MIME type by populating ``Image.MIME``. This function
should not be used in application code. should not be used in application code.
@ -3452,7 +3452,7 @@ def register_mime(id, mimetype) -> None:
MIME[id.upper()] = mimetype 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 Registers an image save function. This function should not be
used in application code. used in application code.