diff --git a/construct-stubs/lib/bitstream.pyi b/construct-stubs/lib/bitstream.pyi index a390bb3..6785ea5 100644 --- a/construct-stubs/lib/bitstream.pyi +++ b/construct-stubs/lib/bitstream.pyi @@ -1,7 +1,6 @@ import io import typing as t - class RestreamedBytesIO(object): substream: t.Optional[io.BytesIO] encoder: t.Callable[[bytes], bytes] @@ -18,15 +17,7 @@ class RestreamedBytesIO(object): decoderunit: int, encoder: t.Callable[[bytes], bytes], encoderunit: int, - ) -> None: - self.substream = substream - self.encoder = encoder - self.encoderunit = encoderunit - self.decoder = decoder - self.decoderunit = decoderunit - self.rbuffer = b"" - self.wbuffer = b"" - self.sincereadwritten = 0 + ) -> None: ... def read(self, count: t.Optional[int] = ...) -> bytes: ... def write(self, data: t.Union[bytes, bytearray, memoryview]) -> int: ... def close(self) -> None: ... diff --git a/construct-stubs/lib/containers.pyi b/construct-stubs/lib/containers.pyi index a13d5b0..7dd34e3 100644 --- a/construct-stubs/lib/containers.pyi +++ b/construct-stubs/lib/containers.pyi @@ -6,9 +6,9 @@ ListType = t.TypeVar("ListType") SearchPattern = t.Union[t.AnyStr, re.Pattern[t.AnyStr]] -class Container(t.Generic[ContainerType], dict[str, ContainerType]): +class Container(t.Generic[ContainerType], t.Dict[str, ContainerType]): def __getattr__(self, name: str) -> ContainerType: ... - def update(self, seqordict: t.Union[dict[str, ContainerType], t.Tuple[str, ContainerType]]) -> None: ... + def update(self, seqordict: t.Union[t.Dict[str, ContainerType], t.Tuple[str, ContainerType]]) -> None: ... def search(self, pattern: SearchPattern[t.Any]) -> t.Any: ... def search_all(self, pattern: SearchPattern[t.Any]) -> t.Any: ...