fixed type error

This commit is contained in:
Tim Rid 2021-01-03 11:54:11 +01:00
parent 753b2deaf3
commit 3d74c99718

View file

@ -131,7 +131,7 @@ def test_formatfield_floats_randomized() -> None:
# and analog although that was misplaced
# http://stackoverflow.com/questions/39676482/struct-packstruct-unpackfloat-is-inconsistent-on-py3
for endianess,dtype in itertools.product("<>=","fd"):
d = FormatField(endianess, dtype)
d: FormatField[float, float] = FormatField(endianess, dtype)
for _ in range(100):
x = random.random()*12345
if dtype == "d":