Type annotations: _imaging.pyi: Add preliminary merge() stub.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-08-31 14:10:59 -07:00 committed by Eric Soroos
parent 6353c153f9
commit f4765c9750

View File

@ -14,6 +14,9 @@ def alpha_composite(core1: ImagingCore, core2: ImagingCore) -> ImagingCore: ...
def blend(core1: ImagingCore, core2: ImagingCore, alpha: float) -> ImagingCore: ... def blend(core1: ImagingCore, core2: ImagingCore, alpha: float) -> ImagingCore: ...
def fill(mode: Mode, size: Size, color: Any) -> Any: ... def fill(mode: Mode, size: Size, color: Any) -> Any: ...
def new(mode: Mode, size: Size) -> ImagingCore: ... def new(mode: Mode, size: Size) -> ImagingCore: ...
def merge(mode: Mode, im1: ImagingCore, im2: ImagingCore=...,
im3: ImagingCore=..., im4: ImagingCore=...) -> ImagingCore: ...
### FIXME: Are these merge values defaults or Optional?
def map_buffer(target_data: Any, size: Size, decoder_name: Text, def map_buffer(target_data: Any, size: Size, decoder_name: Text,
bbox: Optional[Any], offset: int, args: Tuple[Mode, int, int] bbox: Optional[Any], offset: int, args: Tuple[Mode, int, int]