some bugfixes
This commit is contained in:
parent
c03af674be
commit
2b67e07d79
2 changed files with 3 additions and 12 deletions
|
|
@ -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: ...
|
||||
|
|
|
|||
|
|
@ -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: ...
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue