Skip to content

Commit 2c457a3

Browse files
donBarbosmingyu.park
authored andcommitted
Add dis.Instruction.make for 3.14 (python#14039)
1 parent ed71d40 commit 2c457a3

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

stdlib/@tests/stubtest_allowlists/py314.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ ctypes.wintypes.HDROP
5858
ctypes.wintypes.HFILE
5959
ctypes.wintypes.HRESULT
6060
ctypes.wintypes.HSZ
61-
dis.Instruction.make
6261
enum.Enum.__signature__
6362
enum.EnumMeta.__signature__
6463
enum.EnumType.__signature__

stdlib/dis.pyi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,21 @@ class Instruction(_Instruction):
106106
def jump_target(self) -> int: ...
107107
@property
108108
def is_jump_target(self) -> bool: ...
109+
if sys.version_info >= (3, 14):
110+
@staticmethod
111+
def make(
112+
opname: str,
113+
arg: int | None,
114+
argval: Any,
115+
argrepr: str,
116+
offset: int,
117+
start_offset: int,
118+
starts_line: bool,
119+
line_number: int | None,
120+
label: int | None = None,
121+
positions: Positions | None = None,
122+
cache_info: list[tuple[str, int, Any]] | None = None,
123+
) -> Instruction: ...
109124

110125
class Bytecode:
111126
codeobj: types.CodeType

0 commit comments

Comments
 (0)