diff --git a/stdlib/dis.pyi b/stdlib/dis.pyi index 9a99d4498..0b78e17b3 100644 --- a/stdlib/dis.pyi +++ b/stdlib/dis.pyi @@ -80,9 +80,12 @@ class Bytecode: first_line: int | None = ..., current_offset: int | None = ..., show_caches: bool = ..., + adaptive: bool = ..., ) -> None: ... @classmethod - def from_traceback(cls: type[Self], tb: types.TracebackType, *, show_caches: bool = ...) -> Self: ... + def from_traceback( + cls: type[Self], tb: types.TracebackType, *, show_caches: bool = ..., adaptive: bool = ... + ) -> Self: ... else: def __init__( self, x: _HaveCodeOrStringType, *, first_line: int | None = ..., current_offset: int | None = ... @@ -103,7 +106,12 @@ def code_info(x: _HaveCodeOrStringType) -> str: ... if sys.version_info >= (3, 11): def dis( - x: _HaveCodeOrStringType | None = ..., *, file: IO[str] | None = ..., depth: int | None = ..., show_caches: bool = ... + x: _HaveCodeOrStringType | None = ..., + *, + file: IO[str] | None = ..., + depth: int | None = ..., + show_caches: bool = ..., + adaptive: bool = ..., ) -> None: ... elif sys.version_info >= (3, 7): @@ -113,10 +121,18 @@ else: def dis(x: _HaveCodeOrStringType | None = ..., *, file: IO[str] | None = ...) -> None: ... if sys.version_info >= (3, 11): - def disassemble(co: _HaveCodeType, lasti: int = ..., *, file: IO[str] | None = ..., show_caches: bool = ...) -> None: ... - def disco(co: _HaveCodeType, lasti: int = ..., *, file: IO[str] | None = ..., show_caches: bool = ...) -> None: ... - def distb(tb: types.TracebackType | None = ..., *, file: IO[str] | None = ..., show_caches: bool = ...) -> None: ... - def get_instructions(x: _HaveCodeType, *, first_line: int | None = ..., show_caches: bool = ...) -> Iterator[Instruction]: ... + def disassemble( + co: _HaveCodeType, lasti: int = ..., *, file: IO[str] | None = ..., show_caches: bool = ..., adaptive: bool = ... + ) -> None: ... + def disco( + co: _HaveCodeType, lasti: int = ..., *, file: IO[str] | None = ..., show_caches: bool = ..., adaptive: bool = ... + ) -> None: ... + def distb( + tb: types.TracebackType | None = ..., *, file: IO[str] | None = ..., show_caches: bool = ..., adaptive: bool = ... + ) -> None: ... + def get_instructions( + x: _HaveCodeType, *, first_line: int | None = ..., show_caches: bool = ..., adaptive: bool = ... + ) -> Iterator[Instruction]: ... else: def disassemble(co: _HaveCodeType, lasti: int = ..., *, file: IO[str] | None = ...) -> None: ... diff --git a/tests/stubtest_allowlists/py311.txt b/tests/stubtest_allowlists/py311.txt index e6ddc33f5..7b1c7625b 100644 --- a/tests/stubtest_allowlists/py311.txt +++ b/tests/stubtest_allowlists/py311.txt @@ -44,13 +44,6 @@ contextvars.Context.__init__ dataclasses.KW_ONLY dataclasses.field dataclasses.make_dataclass -dis.Bytecode.__init__ -dis.Bytecode.from_traceback -dis.dis -dis.disassemble -dis.disco -dis.distb -dis.get_instructions distutils.dist.DistributionMetadata.set_classifiers distutils.dist.DistributionMetadata.set_keywords distutils.dist.DistributionMetadata.set_platforms