dis: various fixes to dis.dis (#4027)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-17 08:59:11 -07:00
committed by GitHub
parent 26566af893
commit a675778140
2 changed files with 7 additions and 3 deletions

View File

@@ -55,8 +55,14 @@ if sys.version_info >= (3, 0):
def pretty_flags(flags: int) -> str: ...
def code_info(x: _have_code_or_string) -> str: ...
if sys.version_info >= (3, 7):
def dis(x: Optional[_have_code_or_string] = ..., *, file: Optional[IO[str]] = ..., depth: Optional[int] = ...) -> None: ...
elif sys.version_info >= (3, 4):
def dis(x: Optional[_have_code_or_string] = ..., *, file: Optional[IO[str]] = ...) -> None: ...
else:
def dis(x: _have_code_or_string = ...) -> None: ...
if sys.version_info >= (3, 4):
def dis(x: _have_code_or_string = ..., *, file: Optional[IO[str]] = ...) -> None: ...
def distb(tb: Optional[types.TracebackType] = ..., *, file: Optional[IO[str]] = ...) -> None: ...
def disassemble(co: _have_code, lasti: int = ..., *, file: Optional[IO[str]] = ...) -> None: ...
def disco(co: _have_code, lasti: int = ..., *, file: Optional[IO[str]] = ...) -> None: ...
@@ -64,7 +70,6 @@ if sys.version_info >= (3, 4):
def get_instructions(x: _have_code, *, first_line: Optional[int] = ...) -> Iterator[Instruction]: ...
else:
def dis(x: _have_code_or_string = ...) -> None: ...
def distb(tb: types.TracebackType = ...) -> None: ...
def disassemble(co: _have_code, lasti: int = ...) -> None: ...
def disco(co: _have_code, lasti: int = ...) -> None: ...

View File

@@ -167,7 +167,6 @@ dbm.error
dbm.ndbm
decimal.DecimalException.handle
difflib.SequenceMatcher.__init__
dis.dis
distutils.archive_util.make_archive
distutils.archive_util.make_tarball
distutils.command.bdist_msi