mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-27 15:44:46 +03:00
Type annotations: Image.py: Add _show and _showxv annotations.
This commit is contained in:
parent
7f18d6e1eb
commit
3f9890cabe
|
@ -2899,11 +2899,13 @@ def register_encoder(name, encoder):
|
|||
# Simple display support. User code may override this.
|
||||
|
||||
def _show(image, **options):
|
||||
# type: (Image, **Any) -> None
|
||||
# override me, as necessary
|
||||
_showxv(image, **options)
|
||||
|
||||
|
||||
def _showxv(image, title=None, **options):
|
||||
# type: (Image, Optional[Text], **Any) -> None
|
||||
from . import ImageShow
|
||||
ImageShow.show(image, title, **options)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user