mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
fix stdlib.pyi macro
This commit is contained in:
parent
34ad50ffe8
commit
ab32fd37ae
@ -47,17 +47,18 @@ class SysObj:
|
|||||||
def __getitem__(obj: any, key: any) -> any: ...
|
def __getitem__(obj: any, key: any) -> any: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
|
||||||
def __slice__(obj: any, start: any, end: any, step: int) -> any: ...
|
def __slice__(obj: any, start: any, end: any, step: int) -> any: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def len(arg: any) -> int: ...
|
def len(arg: any) -> int: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
|
||||||
def list() -> any: ...
|
def list() -> any: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
|
||||||
def dict() -> any: ...
|
def dict() -> any: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -73,9 +74,11 @@ class SysObj:
|
|||||||
def chr(val: int) -> str: ...
|
def chr(val: int) -> str: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||||
def bytes(val: any) -> bytes: ...
|
def bytes(val: any) -> bytes: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@PIKA_C_MACRO_IF("PIKA_SYNTAX_FORMAT_ENABLE")
|
||||||
def cformat(fmt: str, *var) -> str: ...
|
def cformat(fmt: str, *var) -> str: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -83,7 +86,7 @@ class SysObj:
|
|||||||
def id(obj: any) -> int: ...
|
def id(obj: any) -> int: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
@PIKA_C_MACRO_IF("PIKA_FILEIO_ENABLE")
|
||||||
def open(path: str, mode: str) -> object: ...
|
def open(path: str, mode: str) -> object: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -91,7 +94,7 @@ class SysObj:
|
|||||||
def dir(obj: object) -> list: ...
|
def dir(obj: object) -> list: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
@PIKA_C_MACRO_IF("PIKA_EXEC_ENABLE")
|
||||||
def exec(code: str): ...
|
def exec(code: str): ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -103,10 +106,12 @@ class SysObj:
|
|||||||
def setattr(obj: object, name: str, val: any): ...
|
def setattr(obj: object, name: str, val: any): ...
|
||||||
|
|
||||||
|
|
||||||
|
@PIKA_C_MACRO_IF("0")
|
||||||
class RangeObj:
|
class RangeObj:
|
||||||
def __next__(self) -> any: ...
|
def __next__(self) -> any: ...
|
||||||
|
|
||||||
|
|
||||||
|
@PIKA_C_MACRO_IF("0")
|
||||||
class StringObj:
|
class StringObj:
|
||||||
def __next__(self) -> any: ...
|
def __next__(self) -> any: ...
|
||||||
|
|
||||||
|
@ -47,17 +47,18 @@ class SysObj:
|
|||||||
def __getitem__(obj: any, key: any) -> any: ...
|
def __getitem__(obj: any, key: any) -> any: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
|
||||||
def __slice__(obj: any, start: any, end: any, step: int) -> any: ...
|
def __slice__(obj: any, start: any, end: any, step: int) -> any: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def len(arg: any) -> int: ...
|
def len(arg: any) -> int: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
|
||||||
def list() -> any: ...
|
def list() -> any: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
|
||||||
def dict() -> any: ...
|
def dict() -> any: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -73,9 +74,11 @@ class SysObj:
|
|||||||
def chr(val: int) -> str: ...
|
def chr(val: int) -> str: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||||
def bytes(val: any) -> bytes: ...
|
def bytes(val: any) -> bytes: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@PIKA_C_MACRO_IF("PIKA_SYNTAX_FORMAT_ENABLE")
|
||||||
def cformat(fmt: str, *var) -> str: ...
|
def cformat(fmt: str, *var) -> str: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -83,7 +86,7 @@ class SysObj:
|
|||||||
def id(obj: any) -> int: ...
|
def id(obj: any) -> int: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
@PIKA_C_MACRO_IF("PIKA_FILEIO_ENABLE")
|
||||||
def open(path: str, mode: str) -> object: ...
|
def open(path: str, mode: str) -> object: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -91,7 +94,7 @@ class SysObj:
|
|||||||
def dir(obj: object) -> list: ...
|
def dir(obj: object) -> list: ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
@PIKA_C_MACRO_IF("PIKA_EXEC_ENABLE")
|
||||||
def exec(code: str): ...
|
def exec(code: str): ...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -103,10 +106,12 @@ class SysObj:
|
|||||||
def setattr(obj: object, name: str, val: any): ...
|
def setattr(obj: object, name: str, val: any): ...
|
||||||
|
|
||||||
|
|
||||||
|
@PIKA_C_MACRO_IF("0")
|
||||||
class RangeObj:
|
class RangeObj:
|
||||||
def __next__(self) -> any: ...
|
def __next__(self) -> any: ...
|
||||||
|
|
||||||
|
|
||||||
|
@PIKA_C_MACRO_IF("0")
|
||||||
class StringObj:
|
class StringObj:
|
||||||
def __next__(self) -> any: ...
|
def __next__(self) -> any: ...
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user