mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-23 15:20:33 +03:00
Added type hints
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
c75a93b9a3
commit
575edbefe4
|
@ -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.
|
||||
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user