quopri: unify 2 and 3, add types

This commit is contained in:
Jelle Zijlstra authored and Łukasz Langa committed 2017-03-19 13:08:54 -07:00
1 parent 7906059adb
commit ee22a489d9
2 files changed
+8 -8

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
# Stubs for quopri (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
def encode(input, output, quotetabs, header=0): ...
def encodestring(s, quotetabs=0, header=0): ...
def decode(input, output, header=0): ...
def decodestring(s, header=0): ...
+8
View File
@@ -0,0 +1,8 @@
# Stubs for quopri (Python 2 and 3)
from typing import BinaryIO
def encode(input: BinaryIO, output: BinaryIO, quotetabs: int, header: int = ...) -> None: ...
def encodestring(s: bytes, quotetabs: int = ..., header: int = ...) -> bytes: ...
def decode(input: BinaryIO, output: BinaryIO, header: int = ...) -> None: ...
def decodestring(s: bytes, header: int = ...) -> bytes: ...