mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Rename .py to .pyi.
This commit is contained in:
43
2.7/cStringIO.pyi
Normal file
43
2.7/cStringIO.pyi
Normal file
@@ -0,0 +1,43 @@
|
||||
"""Stub file for the 'cStringIO' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import List, Tuple, Dict, Undefined, GenericType
|
||||
|
||||
InputType = Undefined(StringI)
|
||||
OutputType = Undefined(StringO)
|
||||
cStringIO_CAPI = Undefined(object)
|
||||
|
||||
def StringIO(*args, **kwargs) -> object: ...
|
||||
|
||||
|
||||
class StringI(object):
|
||||
def close() -> None: ...
|
||||
def flush() -> None: ...
|
||||
def getvalue(*args, **kwargs) -> str: ...
|
||||
def isatty() -> bool: ...
|
||||
def read(*args, **kwargs) -> str: ...
|
||||
def readline(*args, **kwargs) -> str: ...
|
||||
def readlines(*args, **kwargs) -> List[str]: ...
|
||||
def reset() -> None: ...
|
||||
def seek(a: int, *args, **kwargs) -> None: ...
|
||||
def tell() -> int: ...
|
||||
def truncate(*args, **kwargs) -> None:
|
||||
raise IOError()
|
||||
|
||||
class StringO(object):
|
||||
def close() -> None: ...
|
||||
def flush() -> None: ...
|
||||
def getvalue(*args, **kwargs) -> str: ...
|
||||
def isatty() -> bool: ...
|
||||
def read(*args, **kwargs) -> str: ...
|
||||
def readline(*args, **kwargs) -> str: ...
|
||||
def readlines(*args, **kwargs) -> List[str]: ...
|
||||
def reset() -> None: ...
|
||||
def seek(a: int, *args, **kwargs) -> None: ...
|
||||
def tell() -> int: ...
|
||||
def truncate(*args, **kwargs) -> None:
|
||||
raise IOError()
|
||||
def write(a) -> None: ...
|
||||
def writelines(*args, **kwargs) -> None: ...
|
||||
Reference in New Issue
Block a user