Ignore incorrect mypy warning

This commit is contained in:
Nulano 2024-04-30 16:32:44 +02:00
parent 74b87ae748
commit c2cb944514

View File

@ -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: