From e393f01a731ceb08872e05995f376cf9bf3bbb4e Mon Sep 17 00:00:00 2001 From: Enric Pou Date: Wed, 28 May 2025 08:27:31 +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 e212ba64a..4fd5b8fbe 100644 --- a/Tests/test_tiff_ifdrational.py +++ b/Tests/test_tiff_ifdrational.py @@ -86,7 +86,7 @@ def test_ifd_rational_save( (0, 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