[Mypy] Fix mypy typing for N/O models (#54142)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
Taneem Ibrahim
2026-09-18 12:50:01 +01:00
committed by GitHub
parent e562003adb
commit 2b8a5495a8
19 changed files with 321 additions and 143 deletions
@@ -551,7 +551,9 @@ class DynamicResolutionImageTiler:
)
@staticmethod
def stack(images: list[torch.Tensor], patch_size: int) -> torch.Tensor:
def stack(
images: list[torch.Tensor] | torch.Tensor, patch_size: int
) -> torch.Tensor:
assert len(images) > 0, "No images to stack"
def rearrange_img(x):