builtins.pyi 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. from PikaObj import *
  2. def int(arg: any, *base) -> any: ...
  3. def bool(arg: any) -> bool: ...
  4. def float(arg: any) -> float: ...
  5. def str(arg: any) -> str: ...
  6. def iter(arg: any) -> any: ...
  7. def range(*ax) -> any: ...
  8. def print(*val, **ops): ...
  9. def __setitem__(obj: any, key: any, val: any) -> any: ...
  10. def __getitem__(obj: any, key: any) -> any: ...
  11. def type(arg: any) -> any: ...
  12. def isinstance(object: any, classinfo: any) -> bool: ...
  13. def len(arg: any) -> int: ...
  14. def list(*val) -> any: ...
  15. def dict(*val) -> any: ...
  16. def tuple(*val) -> any: ...
  17. def hex(val: int) -> str: ...
  18. def ord(val: str) -> int: ...
  19. def chr(val: int) -> str: ...
  20. def bytes(val: any) -> bytes: ...
  21. def cformat(fmt: str, *var) -> str: ...
  22. def id(obj: any) -> int: ...
  23. def open(path: str, mode: str) -> object: ...
  24. def dir(obj: any) -> list: ...
  25. def exec(code: str): ...
  26. def eval(code: str) -> any: ...
  27. def getattr(obj: object, name: str) -> any: ...
  28. def setattr(obj: object, name: str, val: any): ...
  29. def hasattr(obj: object, name: str) -> int: ...
  30. def exit(): ...
  31. def input(*info) -> str: ...
  32. def abs(val: any) -> any: ...
  33. def max(*val) -> any: ...
  34. def min(*val) -> any: ...
  35. def help(name: str): ...
  36. def reboot(): ...
  37. def clear(): ...
  38. def gcdump(): ...
  39. class RangeObj:
  40. def __next__(self) -> any: ...
  41. class StringObj:
  42. def __next__(self) -> any: ...
  43. class object:
  44. pass
  45. class bytearray:
  46. def __init__(self, bytes: any):
  47. """ convert a bytes to ByteArray """
  48. def __iter__(self) -> any:
  49. """ support for loop """
  50. def __next__(self) -> any:
  51. """ support for loop """
  52. def __getitem__(self, __key: int) -> int:
  53. """ support [] index """
  54. def __setitem__(self, __key: int, __val: int): ...
  55. def __str__(self) -> str: ...
  56. def decode(self) -> str: ...
  57. def __len__(self) -> int: ...
  58. def __contains__(self, others: any) -> int: ...
  59. def split(self, *vars) -> list: ...
  60. class BaseException:
  61. pass
  62. class Exception(BaseException):
  63. pass
  64. class SystemExit(BaseException):
  65. pass
  66. class KeyboardInterrupt(BaseException):
  67. pass
  68. class GeneratorExit(BaseException):
  69. pass
  70. class Exception(BaseException):
  71. pass
  72. class StopIteration(Exception):
  73. pass
  74. class StopAsyncIteration(Exception):
  75. pass
  76. class ArithmeticError(Exception):
  77. pass
  78. class FloatingPointError(ArithmeticError):
  79. pass
  80. class OverflowError(ArithmeticError):
  81. pass
  82. class ZeroDivisionError(ArithmeticError):
  83. pass
  84. class AssertionError(Exception):
  85. pass
  86. class AttributeError(Exception):
  87. pass
  88. class BufferError(Exception):
  89. pass
  90. class EOFError(Exception):
  91. pass
  92. class ImportError(Exception):
  93. pass
  94. class ModuleNotFoundError(ImportError):
  95. pass
  96. class LookupError(Exception):
  97. pass
  98. class IndexError(LookupError):
  99. pass
  100. class KeyError(LookupError):
  101. pass
  102. class MemoryError(Exception):
  103. pass
  104. class NameError(Exception):
  105. pass
  106. class UnboundLocalError(NameError):
  107. pass
  108. class OSError(Exception):
  109. pass
  110. class BlockingIOError(OSError):
  111. pass
  112. class ChildProcessError(OSError):
  113. pass
  114. class ConnectionError(OSError):
  115. pass
  116. class BrokenPipeError(ConnectionError):
  117. pass
  118. class ConnectionAbortedError(ConnectionError):
  119. pass
  120. class ConnectionRefusedError(ConnectionError):
  121. pass
  122. class ConnectionResetError(ConnectionError):
  123. pass
  124. class FileExistsError(OSError):
  125. pass
  126. class FileNotFoundError(OSError):
  127. pass
  128. class InterruptedError(OSError):
  129. pass
  130. class IsADirectoryError(OSError):
  131. pass
  132. class NotADirectoryError(OSError):
  133. pass
  134. class PermissionError(OSError):
  135. pass
  136. class ProcessLookupError(OSError):
  137. pass
  138. class TimeoutError(OSError):
  139. pass
  140. class ReferenceError(Exception):
  141. pass
  142. class RuntimeError(Exception):
  143. pass
  144. class NotImplementedError(RuntimeError):
  145. pass
  146. class RecursionError(RuntimeError):
  147. pass
  148. class SyntaxError(Exception):
  149. pass
  150. class IndentationError(SyntaxError):
  151. pass
  152. class TabError(IndentationError):
  153. pass
  154. class SystemError(Exception):
  155. pass
  156. class TypeError(Exception):
  157. pass
  158. class ValueError(Exception):
  159. pass
  160. class UnicodeError(ValueError):
  161. pass
  162. class UnicodeDecodeError(UnicodeError):
  163. pass
  164. class UnicodeEncodeError(UnicodeError):
  165. pass
  166. class UnicodeTranslateError(UnicodeError):
  167. pass
  168. class Warning(Exception):
  169. pass
  170. class DeprecationWarning(Warning):
  171. pass
  172. class PendingDeprecationWarning(Warning):
  173. pass
  174. class RuntimeWarning(Warning):
  175. pass
  176. class SyntaxWarning(Warning):
  177. pass
  178. class UserWarning(Warning):
  179. pass
  180. class FutureWarning(Warning):
  181. pass
  182. class ImportWarning(Warning):
  183. pass
  184. class UnicodeWarning(Warning):
  185. pass
  186. class BytesWarning(Warning):
  187. pass
  188. class ResourceWarning(Warning):
  189. pass