Updated to construct==2.10.66
This commit is contained in:
parent
840817abaa
commit
845af16b4a
4 changed files with 10 additions and 5 deletions
|
|
@ -205,6 +205,7 @@ __all__ = [
|
|||
'TerminatedError',
|
||||
'this',
|
||||
'Timestamp',
|
||||
'TimestampAdapter',
|
||||
'TimestampError',
|
||||
'Transformed',
|
||||
'Tunnel',
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
construct==2.10.64
|
||||
construct==2.10.66
|
||||
pytest>=6.2.0
|
||||
numpy>=1.20.*
|
||||
arrow
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue