Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
  • Loading branch information
radarhere and nulano committed Jun 25, 2024
1 parent 95066b1 commit 077f1d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PIL/ImageGrab.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def grab(
left, top, right, bottom = bbox
im = im.crop((left - x0, top - y0, right - x0, bottom - y0))
return im
# Cast to Optional[str] needed for Windows and macOS.
display_name: str | None = xdisplay
try:
if not Image.core.HAVE_XCB:
Expand Down

0 comments on commit 077f1d0

Please sign in to comment.