pikapython/package/PikaStdLib/PikaStdLib.pyi

131 lines
2.8 KiB
Python
Raw Normal View History

from PikaObj import *
2022-09-14 13:46:19 +08:00
class MemChecker:
2022-05-25 15:42:25 +08:00
def max(self): ...
def now(self): ...
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
2022-05-25 15:42:25 +08:00
def getMax(self) -> float: ...
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
2022-05-25 15:42:25 +08:00
def getNow(self) -> float: ...
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
2022-05-25 15:42:25 +08:00
def resetMax(self): ...
2021-10-01 20:00:15 +08:00
class SysObj:
@staticmethod
def int(arg: any) -> int: ...
@staticmethod
def float(arg: any) -> float: ...
@staticmethod
def str(arg: any) -> str: ...
@staticmethod
def iter(arg: any) -> any: ...
@staticmethod
2022-09-12 20:01:30 +08:00
def range(*ax) -> any: ...
@staticmethod
def print(*val, **ops): ...
@staticmethod
def __setitem__(obj: any, key: any, val: any) -> any: ...
@staticmethod
def __getitem__(obj: any, key: any) -> any: ...
2022-09-10 23:16:59 +08:00
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def type(arg: any) -> any: ...
@staticmethod
def len(arg: any) -> int: ...
@staticmethod
2022-08-24 13:26:06 +08:00
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
2022-09-19 09:53:27 +08:00
def list(*val) -> any: ...
@staticmethod
2022-08-24 13:26:06 +08:00
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
2022-09-27 17:57:38 +08:00
def dict(*val) -> any: ...
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def hex(val: int) -> str: ...
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def ord(val: str) -> int: ...
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def chr(val: int) -> str: ...
@staticmethod
2022-08-24 13:26:06 +08:00
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def bytes(val: any) -> bytes: ...
@staticmethod
2022-08-24 13:26:06 +08:00
@PIKA_C_MACRO_IF("PIKA_SYNTAX_FORMAT_ENABLE")
def cformat(fmt: str, *var) -> str: ...
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def id(obj: any) -> int: ...
@staticmethod
2022-08-24 13:26:06 +08:00
@PIKA_C_MACRO_IF("PIKA_FILEIO_ENABLE")
def open(path: str, mode: str) -> object: ...
2022-05-25 15:42:25 +08:00
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def dir(obj: object) -> list: ...
2022-08-10 12:07:32 +08:00
@staticmethod
2022-08-24 13:26:06 +08:00
@PIKA_C_MACRO_IF("PIKA_EXEC_ENABLE")
2022-08-10 12:07:32 +08:00
def exec(code: str): ...
2022-10-01 14:03:57 +08:00
@staticmethod
@PIKA_C_MACRO_IF("PIKA_EXEC_ENABLE")
def eval(code: str) -> any: ...
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def getattr(obj: object, name: str) -> any: ...
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def setattr(obj: object, name: str, val: any): ...
2022-09-14 13:46:19 +08:00
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
2022-09-26 10:14:01 +08:00
def hasattr(obj: object, name: str) -> int: ...
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
2022-09-14 13:46:19 +08:00
def exit(): ...
2022-10-09 19:46:05 +08:00
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def input(*info) -> str: ...
2022-11-30 00:39:01 +08:00
@staticmethod
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
def help(name: str): ...
2021-12-28 01:21:47 +08:00
@PIKA_C_MACRO_IF("0")
class RangeObj:
2022-05-25 15:42:25 +08:00
def __next__(self) -> any: ...
2022-01-09 23:49:23 +08:00
@PIKA_C_MACRO_IF("0")
class StringObj:
2022-05-25 15:42:25 +08:00
def __next__(self) -> any: ...