From 3d74c99718a836a021cc4e71aada51f9ef466ff1 Mon Sep 17 00:00:00 2001 From: Tim Rid <6593626+timrid@users.noreply.github.com> Date: Sun, 3 Jan 2021 11:54:11 +0100 Subject: [PATCH] fixed type error --- tests/test_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_core.py b/tests/test_core.py index 9fa90f4..ddacd4a 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -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":