Apply fixes, remove duplicates.

Apply fixes to _random, cStringIO, errno, operator, sys, zlib, etc.; also,
remove duplicate 2.7/math.pyi, 2.7/marshal.pyi.
This commit is contained in:
Matthias Kramm
2015-09-30 12:04:57 -07:00
parent fc2ddb852c
commit 56dcc02e25
19 changed files with 734 additions and 605 deletions
+16 -14
View File
@@ -1,20 +1,22 @@
# Stubs for binascii (Python 2)
"""Stubs for the binascii module."""
from typing import Optional
def a2b_uu(string: str) -> str: ...
def b2a_uu(data: str) -> str: ...
def a2b_base64(string: str) -> str: ...
def b2a_base64(data: str) -> str: ...
def a2b_qp(string: str, header: bool = None) -> str: ...
def b2a_qp(data: str, quotetabs: bool = None, istext: bool = None, header: bool = None) -> str: ...
def a2b_hqx(string: str) -> str: ...
def rledecode_hqx(data: str) -> str: ...
def rlecode_hqx(data: str) -> str: ...
def b2a_hqx(data: str) -> str: ...
def crc_hqx(data: str, crc: int) -> int: ...
def crc32(data: str, crc: int) -> int: ...
def b2a_hex(data: str) -> str: ...
def hexlify(data: str) -> str: ...
def a2b_hex(hexstr: str) -> str: ...
def a2b_hqx(string: str) -> str: ...
def a2b_qp(string: str, header: bool = None) -> str: ...
def a2b_uu(string: str) -> str: ...
def b2a_base64(data: str) -> str: ...
def b2a_hex(data: str) -> str: ...
def b2a_hqx(data: str) -> str: ...
def b2a_qp(data: str, quotetabs: bool = None, istext: bool = None, header: bool = None) -> str: ...
def b2a_uu(data: str) -> str: ...
def crc32(data: str, crc: Optional[int]) -> int: ...
def crc_hqx(data: str, oldcrc: int) -> int: ...
def hexlify(data: str) -> str: ...
def rlecode_hqx(data: str) -> str: ...
def rledecode_hqx(data: str) -> str: ...
def unhexlify(hexstr: str) -> str: ...
class Error(Exception): ...