From 3812ac013a5bdb2153aec0c512693dd6ce08709f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20Wersd=C3=B6rfer?= Date: Mon, 27 Nov 2023 10:31:22 +0100 Subject: [PATCH] #112 please pycharm and mypy at the same time --- cast/blocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cast/blocks.py b/cast/blocks.py index d6b09aa7..588118a4 100644 --- a/cast/blocks.py +++ b/cast/blocks.py @@ -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: @@ -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