arrow is now also typed, so the type ignore is unnecessary
This commit is contained in:
parent
fd590cf019
commit
318c5b0a67
2 changed files with 2 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue