"vscode:/vscode.git/clone" did not exist on "596ca471a511004d0fbc2ce0faee6b8150066d3c"
Unverified Commit 8aadef5f authored by vfdev's avatar vfdev Committed by GitHub
Browse files

Try to fix lint/mypy failed CI (#5598)


Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
parent 8f61f4ca
......@@ -318,9 +318,9 @@ def resized_crop_image_pil(
def _parse_five_crop_size(size: List[int]) -> List[int]:
if isinstance(size, numbers.Number):
size = (int(size), int(size))
size = [int(size), int(size)]
elif isinstance(size, (tuple, list)) and len(size) == 1:
size = (size[0], size[0]) # type: ignore[assignment]
size = [size[0], size[0]]
if len(size) != 2:
raise ValueError("Please provide only two dimensions (h, w) for size.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment