Further improve codecs stubs (#2217)

- remove header comments
- uppercase type aliases
- remove old-style type annotations
- unquote forward refs
- reformat the file
- remove values for globals
- don't use private names from codecs stub in io.pyi
This commit is contained in:
Jelle Zijlstra
2018-06-11 22:24:34 -07:00
committed by GitHub
parent 978c0913c8
commit 6bbf3d89eb
2 changed files with 115 additions and 170 deletions

View File

@@ -263,4 +263,4 @@ class StringIO(TextIOWrapper):
def __enter__(self) -> 'StringIO': ...
class IncrementalNewlineDecoder(codecs.IncrementalDecoder):
def decode(self, input: codecs._encoded, final: bool = ...) -> codecs._decoded: ...
def decode(self, input: bytes, final: bool = ...) -> str: ...