Merge branch 'main' into feature/new-structure

This commit is contained in:
Tim Rid 2022-02-13 17:03:38 +01:00
commit 96ef565044
3 changed files with 3 additions and 3 deletions

View file

@ -526,7 +526,7 @@ class Const(Subconstruct[SubconParsedType, SubconBuildTypes, ParsedType, BuildTy
def __new__(
cls,
value: bytes,
) -> Const[None, None, bytes, Bytes[bytes, int]]: ...
) -> Const[None, None, bytes, t.Optional[bytes]]: ...
@t.overload
def __new__(
cls,

View file

@ -1,6 +1,6 @@
construct==2.10.67
pytest>=6.2.0
numpy==1.20.*
numpy==1.21.*
arrow
ruamel.yaml
cloudpickle

View file

@ -634,7 +634,7 @@ def test_numpy() -> None:
@pytest.mark.xfail(reason="docs stated that it throws StreamError, not true at all")
def test_numpy_error() -> None:
import numpy, io
numpy.load(io.BytesIO(b""))
numpy.load(io.BytesIO(b"")) # type: ignore
def test_namedtuple() -> None:
import collections