mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Add dis.Instruction.make for 3.14 (#14039)
This commit is contained in:
@@ -106,6 +106,21 @@ class Instruction(_Instruction):
|
||||
def jump_target(self) -> int: ...
|
||||
@property
|
||||
def is_jump_target(self) -> bool: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
@staticmethod
|
||||
def make(
|
||||
opname: str,
|
||||
arg: int | None,
|
||||
argval: Any,
|
||||
argrepr: str,
|
||||
offset: int,
|
||||
start_offset: int,
|
||||
starts_line: bool,
|
||||
line_number: int | None,
|
||||
label: int | None = None,
|
||||
positions: Positions | None = None,
|
||||
cache_info: list[tuple[str, int, Any]] | None = None,
|
||||
) -> Instruction: ...
|
||||
|
||||
class Bytecode:
|
||||
codeobj: types.CodeType
|
||||
|
||||
Reference in New Issue
Block a user