Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added type hints for PixelAccess related methods and others #8032

Merged
merged 21 commits into from
Jun 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore incorrect mypy warning
  • Loading branch information
nulano committed Apr 30, 2024
commit c2cb9445141476283ff0a94be06ad70d4422e535
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