mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Ignore incorrect mypy warning
This commit is contained in:
parent
74b87ae748
commit
c2cb944514
|
@ -84,7 +84,7 @@ def grab(
|
||||||
fh, filepath = tempfile.mkstemp(".png")
|
fh, filepath = tempfile.mkstemp(".png")
|
||||||
os.close(fh)
|
os.close(fh)
|
||||||
subprocess.call(["gnome-screenshot", "-f", filepath])
|
subprocess.call(["gnome-screenshot", "-f", filepath])
|
||||||
im: Image.Image = Image.open(filepath)
|
im: Image.Image = Image.open(filepath) # type: ignore[no-redef, unused-ignore]
|
||||||
im.load()
|
im.load()
|
||||||
os.unlink(filepath)
|
os.unlink(filepath)
|
||||||
if bbox:
|
if bbox:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user