mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Apply stub fixes from o11c.
These are extracted from https://github.com/JukkaL/mypy/pull/721
This commit is contained in:
6
stdlib/3/encodings/__init__.pyi
Normal file
6
stdlib/3/encodings/__init__.pyi
Normal file
@@ -0,0 +1,6 @@
|
||||
import codecs
|
||||
|
||||
import typing
|
||||
|
||||
def search_function(encoding: str) -> codecs.CodecInfo:
|
||||
...
|
||||
15
stdlib/3/encodings/utf_8.pyi
Normal file
15
stdlib/3/encodings/utf_8.pyi
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user