mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-28 17:53:11 +03:00
Renamed argument
This commit is contained in:
parent
a655d7606e
commit
7200f47d31
|
@ -343,14 +343,14 @@ def test_extended_information() -> None:
|
||||||
# recursively and then check equality.
|
# recursively and then check equality.
|
||||||
power = 10**digits
|
power = 10**digits
|
||||||
|
|
||||||
def truncate_tuple(tuple_or_float: tuple[Any, ...]) -> tuple[Any, ...]:
|
def truncate_tuple(tuple_value: tuple[Any, ...]) -> tuple[Any, ...]:
|
||||||
return tuple(
|
return tuple(
|
||||||
(
|
(
|
||||||
truncate_tuple(val)
|
truncate_tuple(val)
|
||||||
if isinstance(val, tuple)
|
if isinstance(val, tuple)
|
||||||
else int(val * power) / power
|
else int(val * power) / power
|
||||||
)
|
)
|
||||||
for val in tuple_or_float
|
for val in tuple_value
|
||||||
)
|
)
|
||||||
|
|
||||||
assert truncate_tuple(tup1) == truncate_tuple(tup2)
|
assert truncate_tuple(tup1) == truncate_tuple(tup2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user