Various packages stubtest fixes (#5221)

This commit is contained in:
hatal175
2021-04-16 07:04:40 +03:00
committed by GitHub
parent 3d8bffae80
commit 82be016aa4
5 changed files with 20 additions and 17 deletions

View File

@@ -1,15 +1,21 @@
import codecs
from typing import Tuple
from typing import Optional, Tuple
class IncrementalEncoder(codecs.IncrementalEncoder):
def encode(self, input: str, final: bool = ...) -> bytes: ...
class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
def _buffer_decode(self, input: bytes, errors: str, final: bool) -> Tuple[str, int]: ...
@staticmethod
def _buffer_decode(__data: bytes, __errors: Optional[str] = ..., __final: bool = ...) -> Tuple[str, int]: ...
class StreamWriter(codecs.StreamWriter): ...
class StreamReader(codecs.StreamReader): ...
class StreamWriter(codecs.StreamWriter):
@staticmethod
def encode(__str: str, __errors: Optional[str] = ...) -> Tuple[bytes, int]: ...
class StreamReader(codecs.StreamReader):
@staticmethod
def decode(__data: bytes, __errors: Optional[str] = ..., __final: bool = ...) -> Tuple[str, int]: ...
def getregentry() -> codecs.CodecInfo: ...
def encode(input: str, errors: str = ...) -> bytes: ...
def decode(input: bytes, errors: str = ...) -> str: ...
def encode(__str: str, __errors: Optional[str] = ...) -> Tuple[bytes, int]: ...
def decode(input: bytes, errors: Optional[str] = ...) -> Tuple[str, int]: ...