mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 08:12:33 +03:00
Add test_float_cast typing
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
7eec948fa4
commit
f2a2b1a138
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user