Skip to content

Commit

Permalink
Ignore some pytype errors caused by an internal Pillow upgrade.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 683622774
  • Loading branch information
lukegb authored and The android_world Authors committed Oct 8, 2024
1 parent 8516c11 commit e78f60a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android_world/task_evals/utils/user_data_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ def get_font_path() -> str:
for font_name in _FONT_PATHS:
try:
font_path = ImageFont.truetype(font_name).path
return font_path
return font_path # pytype: disable=bad-return-type # pillow-102-upgrade
except IOError:
continue
try:
return ImageFont.truetype().path
return ImageFont.truetype().path # pytype: disable=bad-return-type # pillow-102-upgrade
except IOError as exc:
raise RuntimeError("No suitable font found.") from exc

Expand Down

0 comments on commit e78f60a

Please sign in to comment.