add type hint for convert

This commit is contained in:
Prodesire 2018-02-16 19:26:25 +08:00
parent 311e8d1f3d
commit 3ffb75d062
1 changed files with 16 additions and 0 deletions

16
pydu/convert.pyi Normal file
View File

@ -0,0 +1,16 @@
from typing import Any
def boolean(obj: Any) -> bool: ...
def bin2oct(x: str) -> str: ...
def bin2dec(x: str) -> int: ...
def bin2hex(x: str) -> str: ...
def oct2bin(x: str) -> str: ...
def oct2dec(x: str) -> int: ...
def oct2hex(x: str) -> str: ...
def dec2bin(x: int) -> str: ...
def dec2oct(x: int) -> str: ...
def dec2hex(x: int) -> str: ...
def hex2bin(x: str) -> str: ...
def hex2oct(x: str) -> str: ...
def hex2dec(x: str) -> int: ...