From f2a2b1a13884750e9f35cd6ee09d9b08702446e6 Mon Sep 17 00:00:00 2001 From: Enric Pou Date: Wed, 28 May 2025 08:27:05 +0200 Subject: [PATCH] Add test_float_cast typing Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- Tests/test_tiff_ifdrational.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_tiff_ifdrational.py b/Tests/test_tiff_ifdrational.py index 1e42ff70e..8aae609a5 100644 --- a/Tests/test_tiff_ifdrational.py +++ b/Tests/test_tiff_ifdrational.py @@ -84,7 +84,7 @@ def test_ifd_rational_save( (1, 0, float("nan")), ], ) -def test_float_cast(numerator, denominator, expected_result): +def test_float_cast(numerator: int, denominator: int, expected_result: float) -> None: value = float(IFDRational(numerator, denominator)) if math.isnan(expected_result): assert value