Skip to content

Commit

Permalink
Ignore incorrect mypy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nulano committed Apr 30, 2024
1 parent 74b87ae commit c2cb944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/ImageGrab.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def grab(
fh, filepath = tempfile.mkstemp(".png")
os.close(fh)
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()
os.unlink(filepath)
if bbox:
Expand Down

0 comments on commit c2cb944

Please sign in to comment.