Skip to content

Commit

Permalink
#112 please pycharm and mypy at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
ephes committed Nov 27, 2023
1 parent 66c0601 commit 3812ac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cast/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def calculate_thumbnail_width(original_width, original_height, rect_width, rect_
ImageFormat = Literal["jpeg", "avif", "webp"]


ImageFormats = list[ImageFormat]
ImageFormats = Iterable[ImageFormat]


class Thumbnail:
Expand All @@ -65,7 +65,7 @@ def __init__(
slot_width: int,
slot_height: int,
max_scale_factor: int = 3,
formats: ImageFormats = ["jpeg", "avif"],
formats: ImageFormats = ("jpeg", "avif"),
) -> None:
self.image = image
self.formats: ImageFormats = formats
Expand Down

0 comments on commit 3812ac0

Please sign in to comment.