pickletools: accepts bytearray, use protocol from _typeshed (#9073)

This commit is contained in:
Jelle Zijlstra
2022-11-03 08:20:03 -07:00
committed by GitHub
parent 27caa8f221
commit a17fa5001a
2 changed files with 8 additions and 11 deletions

View File

@@ -156,10 +156,10 @@ class OpcodeInfo:
opcodes: list[OpcodeInfo]
def genops(pickle: bytes | IO[bytes]) -> Iterator[tuple[OpcodeInfo, Any | None, int | None]]: ...
def optimize(p: bytes | IO[bytes]) -> bytes: ...
def genops(pickle: bytes | bytearray | IO[bytes]) -> Iterator[tuple[OpcodeInfo, Any | None, int | None]]: ...
def optimize(p: bytes | bytearray | IO[bytes]) -> bytes: ...
def dis(
pickle: bytes | IO[bytes],
pickle: bytes | bytearray | IO[bytes],
out: IO[str] | None = ...,
memo: MutableMapping[int, Any] | None = ...,
indentlevel: int = ...,