From 1f1b90f513351c218a50a3289201d7492e194ca3 Mon Sep 17 00:00:00 2001 From: Eric Soroos Date: Thu, 4 Jan 2018 14:18:07 +0000 Subject: [PATCH] Ignore that which mypy gets wrong --- src/PIL/Image.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 8a6dd0fe7..71d7fbd85 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1469,10 +1469,10 @@ class Image(object): raise ValueError("Incorrect Paste specification") if len(box) == 4: - box_lurd = box + box_lurd = box # type: ignore elif len(box) == 2: # upper left corner given; get size from image or mask - box_coord = box + box_coord = box # type: ignore if paste_im: size = paste_im.size elif mask_img: @@ -1482,7 +1482,7 @@ class Image(object): raise ValueError( "cannot determine region size; use 4-item box" ) - box_lurd = box_coord + (box_coord[0]+size[0], box_coord[1]+size[1]) + box_lurd = box_coord + (box_coord[0]+size[0], box_coord[1]+size[1]) # type: ignore else: raise ValueError("Incorrect Box specification")