mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
dis: add adaptive argument for 3.11 (#7889)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user