mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
quopri: unify 2 and 3, add types
This commit is contained in:
committed by
Łukasz Langa
parent
7906059adb
commit
ee22a489d9
@@ -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
8
stdlib/2and3/quopri.pyi
Normal 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: ...
|
||||
Reference in New Issue
Block a user