Updated argument types to match Image draft

This commit is contained in:
Andrew Murray 2024-12-27 11:38:47 +11:00
parent 0148684c24
commit 89f1498796

View File

@ -110,7 +110,7 @@ def test_load_first_unless_jpeg(monkeypatch: pytest.MonkeyPatch) -> None:
original_draft = im.draft
def im_draft(
mode: str, size: tuple[int, int]
mode: str | None, size: tuple[int, int] | None
) -> tuple[str, tuple[int, int, float, float]] | None:
result = original_draft(mode, size)
assert result is not None