diff --git a/construct-stubs/core.pyi b/construct-stubs/core.pyi index 082b735..4e91215 100644 --- a/construct-stubs/core.pyi +++ b/construct-stubs/core.pyi @@ -1,10 +1,9 @@ import enum import io -import struct import sys import typing as t -import arrow # type: ignore +import arrow from construct.lib import ( Container, ContainerType, diff --git a/tests/test_core.py b/tests/test_core.py index 9d0c320..cd5671f 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -651,7 +651,7 @@ def test_namedtuple() -> None: assert raises(lambda: NamedTuple("coord", "x y z", BitStruct("x"/Byte, "y"/Byte, "z"/Byte))) == NamedTupleError def test_timestamp() -> None: - import arrow # type: ignore + import arrow d1 = Timestamp(Int64ub, 1, 1970) common(d1, b'\x00\x00\x00\x00ZIz\x00', arrow.Arrow(2018,1,1), 8) d2 = Timestamp(Int64ub, 1, 1904)