From 6e79536e096cbf3cd5b6ba5bb799e70ef8990292 Mon Sep 17 00:00:00 2001 From: Eric Soroos Date: Wed, 3 Jan 2018 11:45:04 +0000 Subject: [PATCH] Typing: quantize --- src/PIL/Image.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index dc03b4984..5f82cd2e5 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -31,7 +31,6 @@ if False: # Just required for typing, or gradual module inclusion while adding annotation? import pathlib -# from . import ImagingPalette ## FIXME TYPING This will need a stub? from . import ImagePalette from .ImageFilter import Filter from .ImageFile import PyDecoder @@ -1046,7 +1045,7 @@ class Image(object): return new_im def quantize(self, colors=256, method=None, kmeans=0, palette=None): - # type: (int, Optional[int], int, Optional[ImagingPalette]) -> Image + # type: (int, Optional[int], int, Optional[Image]) -> Image """ Convert the image to 'P' mode with the specified number of colors.