mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
add some Python 2 modules
This commit is contained in:
80
python2/strop.py
Normal file
80
python2/strop.py
Normal file
@@ -0,0 +1,80 @@
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more percise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
def atoi(a: str, *args, **kwargs) -> int:
|
||||
raise ValueError()
|
||||
raise DeprecationWarning()
|
||||
|
||||
def split(*args, **kwargs) -> List[str]:
|
||||
raise ValueError()
|
||||
raise DeprecationWarning()
|
||||
|
||||
def joinfields(*args, **kwargs) -> object:
|
||||
raise OverflowError()
|
||||
raise TypeError()
|
||||
raise DeprecationWarning()
|
||||
|
||||
def lower(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def lstrip(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def atol(a: str, *args, **kwargs) -> long:
|
||||
raise ValueError()
|
||||
raise DeprecationWarning()
|
||||
|
||||
def upper(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def expandtabs(a: Nothing, *args, **kwargs) -> str:
|
||||
raise OverflowError()
|
||||
raise ValueError()
|
||||
raise DeprecationWarning()
|
||||
|
||||
def translate(*args, **kwargs) -> str:
|
||||
raise ValueError()
|
||||
raise DeprecationWarning()
|
||||
|
||||
def capitalize(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def find(*args, **kwargs) -> int:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def join(*args, **kwargs) -> object:
|
||||
raise OverflowError()
|
||||
raise TypeError()
|
||||
raise DeprecationWarning()
|
||||
|
||||
def count(*args, **kwargs) -> int:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def swapcase(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def maketrans(*args, **kwargs) -> str:
|
||||
raise ValueError()
|
||||
|
||||
def rstrip(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def strip(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def atof(a: str) -> float:
|
||||
raise ValueError()
|
||||
raise DeprecationWarning()
|
||||
|
||||
def splitfields(*args, **kwargs) -> List[str]:
|
||||
raise ValueError()
|
||||
raise DeprecationWarning()
|
||||
|
||||
def replace(*args, **kwargs) -> str:
|
||||
raise MemoryError()
|
||||
raise ValueError()
|
||||
raise DeprecationWarning()
|
||||
|
||||
def rfind(*args, **kwargs) -> int:
|
||||
raise DeprecationWarning()
|
||||
Reference in New Issue
Block a user