pikapython/package/PikaStdLib/PikaStdLib.pyi

115 lines
2.5 KiB
Python
Raw Normal View History

from PikaObj import *
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
def range(a1: int, a2: int) -> 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
2022-08-24 13:26:06 +08:00
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
def __slice__(obj: any, start: any, end: any, step: int) -> any: ...
@staticmethod
def len(arg: any) -> int: ...
@staticmethod
2022-08-24 13:26:06 +08:00
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
def list() -> any: ...
@staticmethod
2022-08-24 13:26:06 +08:00
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
def dict() -> 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): ...
@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): ...
2021-12-28 01:21:47 +08:00
2022-08-24 13:26:06 +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
2022-08-24 13:26:06 +08:00
@PIKA_C_MACRO_IF("0")
class StringObj:
2022-05-25 15:42:25 +08:00
def __next__(self) -> any: ...