Skip to content

Commit

Permalink
Added type hint
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
radarhere and hugovk authored Jan 10, 2024
1 parent 659098c commit 38bfe3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ def getbands(self):
"""
return ImageMode.getmode(self.mode).bands

def getbbox(self, *, alpha_only=True) -> tuple[int, int, int, int]:
def getbbox(self, *, alpha_only: bool = True) -> tuple[int, int, int, int]:
"""
Calculates the bounding box of the non-zero regions in the
image.
Expand Down

0 comments on commit 38bfe3c

Please sign in to comment.