Updated to construct==2.10.66

This commit is contained in:
Tim Rid 2021-04-03 21:35:57 +02:00
parent 840817abaa
commit 845af16b4a
4 changed files with 10 additions and 5 deletions

View file

@ -205,6 +205,7 @@ __all__ = [
'TerminatedError',
'this',
'Timestamp',
'TimestampAdapter',
'TimestampError',
'Transformed',
'Tunnel',

View file

@ -607,22 +607,26 @@ if sys.version_info >= (3, 8):
else:
MSDOS = str
class TimestampAdapter(
Adapter[SubconParsedType, SubconBuildTypes, arrow.Arrow, arrow.Arrow]
): ...
@t.overload
def Timestamp(
subcon: Construct[int, int], unit: MSDOS, epoch: MSDOS
) -> Adapter[int, int, arrow.Arrow, arrow.Arrow]: ...
) -> TimestampAdapter[int, int]: ...
@t.overload
def Timestamp(
subcon: Construct[int, int],
unit: t.Union[int, float],
epoch: t.Union[int, arrow.Arrow],
) -> Adapter[int, int, arrow.Arrow, arrow.Arrow]: ...
) -> TimestampAdapter[int, int]: ...
@t.overload
def Timestamp(
subcon: Construct[float, float],
unit: t.Union[int, float],
epoch: t.Union[int, arrow.Arrow],
) -> Adapter[float, float, arrow.Arrow, arrow.Arrow]: ...
) -> TimestampAdapter[float, float]: ...
K = t.TypeVar("K")
V = t.TypeVar("V")

View file

@ -1,4 +1,4 @@
construct==2.10.64
construct==2.10.66
pytest>=6.2.0
numpy>=1.20.*
arrow

View file

@ -20,7 +20,7 @@ setup(
url="https://github.com/timrid/construct-typing",
author="Tim Riddermann",
python_requires=">=3.7",
install_requires=["construct==2.10.64"],
install_requires=["construct==2.10.66"],
keywords=[
"construct",
"kaitai",