arrow is now also typed, so the type ignore is unnecessary

This commit is contained in:
Tim Rid 2021-03-13 12:51:09 +01:00
parent fd590cf019
commit 318c5b0a67
2 changed files with 2 additions and 3 deletions

View file

@ -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,

View file

@ -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)