quopri: unify 2 and 3, add types

This commit is contained in:
Jelle Zijlstra
2017-03-19 12:39:15 -07:00
committed by Łukasz Langa
parent 7906059adb
commit ee22a489d9
2 changed files with 8 additions and 8 deletions

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
stdlib/2and3/quopri.pyi Normal file
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: ...