407 lines
4.7 KiB
Python
Raw Normal View History

2023-05-21 22:36:47 +08:00
from PikaObj import *
2023-05-22 15:19:59 +08:00
2023-07-21 19:30:32 +08:00
def int(arg: any, *base) -> any: ...
2023-05-21 22:36:47 +08:00
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def bool(arg: any) -> bool: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def float(arg: any) -> float: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def str(arg: any) -> str: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def iter(arg: any) -> any: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def range(*ax) -> any: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def print(*val, **ops): ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def __setitem__(obj: any, key: any, val: any) -> any: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def __getitem__(obj: any, key: any) -> any: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def type(arg: any) -> any: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def isinstance(object: any, classinfo: any) -> bool: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def len(arg: any) -> int: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def list(*val) -> any: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def dict(*val) -> any: ...
2023-05-22 15:19:59 +08:00
def tuple(*val) -> any: ...
2023-05-21 22:36:47 +08:00
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def hex(val: int) -> str: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def ord(val: str) -> int: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def chr(val: int) -> str: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def bytes(val: any) -> bytes: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def cformat(fmt: str, *var) -> str: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def id(obj: any) -> int: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def open(path: str, mode: str) -> object: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def dir(obj: any) -> list: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def exec(code: str): ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def eval(code: str) -> any: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def getattr(obj: object, name: str) -> any: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def setattr(obj: object, name: str, val: any): ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def hasattr(obj: object, name: str) -> int: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def exit(): ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def input(*info) -> str: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def abs(val: any) -> any: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def max(*val) -> any: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def min(*val) -> any: ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def help(name: str): ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def reboot(): ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def clear(): ...
2023-05-22 15:19:59 +08:00
2023-05-21 22:36:47 +08:00
def gcdump(): ...
2023-05-22 15:19:59 +08:00
class RangeObj:
def __next__(self) -> any: ...
class StringObj:
def __next__(self) -> any: ...
2023-05-22 15:19:59 +08:00
class object:
pass
2023-05-29 12:09:23 +08:00
class bytearray:
def __init__(self, bytes: any):
""" convert a bytes to ByteArray """
def __iter__(self) -> any:
""" support for loop """
def __next__(self) -> any:
""" support for loop """
def __getitem__(self, __key: int) -> int:
""" support [] index """
def __setitem__(self, __key: int, __val: int): ...
2023-06-27 15:44:05 +08:00
2023-05-29 12:09:23 +08:00
def __str__(self) -> str: ...
2023-06-27 15:44:05 +08:00
2023-05-29 12:09:23 +08:00
def decode(self) -> str: ...
2023-06-27 15:44:05 +08:00
def __len__(self) -> int: ...
2023-05-29 12:09:23 +08:00
2023-05-22 16:37:13 +08:00
class BaseException:
2023-05-22 15:19:59 +08:00
pass
class Exception(BaseException):
pass
class SystemExit(BaseException):
pass
class KeyboardInterrupt(BaseException):
pass
class GeneratorExit(BaseException):
pass
class Exception(BaseException):
pass
class StopIteration(Exception):
pass
class StopAsyncIteration(Exception):
pass
class ArithmeticError(Exception):
pass
class FloatingPointError(ArithmeticError):
pass
class OverflowError(ArithmeticError):
pass
class ZeroDivisionError(ArithmeticError):
pass
class AssertionError(Exception):
pass
class AttributeError(Exception):
pass
class BufferError(Exception):
pass
class EOFError(Exception):
pass
class ImportError(Exception):
pass
class ModuleNotFoundError(ImportError):
pass
class LookupError(Exception):
pass
class IndexError(LookupError):
pass
class KeyError(LookupError):
pass
class MemoryError(Exception):
pass
class NameError(Exception):
pass
class UnboundLocalError(NameError):
pass
class OSError(Exception):
pass
class BlockingIOError(OSError):
pass
class ChildProcessError(OSError):
pass
class ConnectionError(OSError):
pass
class BrokenPipeError(ConnectionError):
pass
class ConnectionAbortedError(ConnectionError):
pass
class ConnectionRefusedError(ConnectionError):
pass
class ConnectionResetError(ConnectionError):
pass
class FileExistsError(OSError):
pass
class FileNotFoundError(OSError):
pass
class InterruptedError(OSError):
pass
class IsADirectoryError(OSError):
pass
class NotADirectoryError(OSError):
pass
class PermissionError(OSError):
pass
class ProcessLookupError(OSError):
pass
class TimeoutError(OSError):
pass
class ReferenceError(Exception):
pass
class RuntimeError(Exception):
pass
class NotImplementedError(RuntimeError):
pass
class RecursionError(RuntimeError):
pass
class SyntaxError(Exception):
pass
class IndentationError(SyntaxError):
pass
class TabError(IndentationError):
pass
class SystemError(Exception):
pass
class TypeError(Exception):
pass
class ValueError(Exception):
pass
class UnicodeError(ValueError):
pass
class UnicodeDecodeError(UnicodeError):
pass
class UnicodeEncodeError(UnicodeError):
pass
class UnicodeTranslateError(UnicodeError):
pass
class Warning(Exception):
pass
class DeprecationWarning(Warning):
pass
class PendingDeprecationWarning(Warning):
pass
class RuntimeWarning(Warning):
pass
class SyntaxWarning(Warning):
pass
class UserWarning(Warning):
pass
class FutureWarning(Warning):
pass
class ImportWarning(Warning):
pass
class UnicodeWarning(Warning):
pass
class BytesWarning(Warning):
pass
class ResourceWarning(Warning):
pass