Use Color type for fillcolor

This commit is contained in:
wiredfool 2017-12-29 21:37:45 +00:00 committed by Eric Soroos
parent 2e94a2e649
commit b2b035fb32

View File

@ -2158,7 +2158,7 @@ class Image(object):
# instead of bloating the method docs, add a separate chapter. # instead of bloating the method docs, add a separate chapter.
def transform(self, size, method, data=None, resample=NEAREST, def transform(self, size, method, data=None, resample=NEAREST,
fill=1, fillcolor=None): fill=1, fillcolor=None):
# type: (Size, int, Optional[List[float]], int, int, Optional[Union[int, float, Tuple, Text]]) -> Image # type: (Size, int, Optional[List[float]], int, int, Optional[Color]) -> Image
""" """
Transforms this image. This method creates a new image with the Transforms this image. This method creates a new image with the
given size, and the same mode as the original, and copies data given size, and the same mode as the original, and copies data