Apply stub fixes from o11c.

These are extracted from https://github.com/JukkaL/mypy/pull/721
This commit is contained in:
Matthias Kramm
2015-10-01 14:52:47 -07:00
parent 28e24a4664
commit 9edaf83284
14 changed files with 271 additions and 22 deletions

View File

@@ -0,0 +1,6 @@
import codecs
import typing
def search_function(encoding: str) -> codecs.CodecInfo:
...

View File

@@ -0,0 +1,15 @@
import codecs
class IncrementalEncoder(codecs.IncrementalEncoder):
pass
class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
pass
class StreamWriter(codecs.StreamWriter):
pass
class StreamReader(codecs.StreamReader):
pass
def getregentry() -> codecs.CodecInfo: pass
def encode(input: str, errors: str = 'strict') -> bytes: pass
def decode(input: bytes, errors: str = 'strict') -> str: pass