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