mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-31 16:56:20 +08:00
clean python 3 specific stuff from stdlib/@python2 stubs (#5451)
This commit is contained in:
1 parent
f94d838814
commit
5ec4f06263
121 files changed
+1024
-4801
No files matched your search
@@ -5,12 +5,5 @@ _File = Union[Text, BinaryIO]
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
def encode(
|
||||
in_file: _File, out_file: _File, name: Optional[str] = ..., mode: Optional[int] = ..., *, backtick: bool = ...
|
||||
) -> None: ...
|
||||
|
||||
else:
|
||||
def encode(in_file: _File, out_file: _File, name: Optional[str] = ..., mode: Optional[int] = ...) -> None: ...
|
||||
|
||||
def encode(in_file: _File, out_file: _File, name: Optional[str] = ..., mode: Optional[int] = ...) -> None: ...
|
||||
def decode(in_file: _File, out_file: Optional[_File] = ..., mode: Optional[int] = ..., quiet: int = ...) -> None: ...
|
||||
Reference in new issue
Block a user