mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-06 06:03:14 +03:00
Add test_float_cast typing
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
4a486e4ec2
commit
e393f01a73
|
@ -86,7 +86,7 @@ def test_ifd_rational_save(
|
||||||
(0, 0, float("nan")),
|
(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))
|
value = float(IFDRational(numerator, denominator))
|
||||||
if math.isnan(expected_result):
|
if math.isnan(expected_result):
|
||||||
assert value
|
assert value
|
||||||
|
|
Loading…
Reference in New Issue
Block a user