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

This commit is contained in:
Jelle Zijlstra authored and GitHub committed 2022-11-03 16:20:03 +01:00
1 parent 27caa8f221
commit a17fa5001a
2 files changed
+8 -11

No files matched your search

+3 -3
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 = ...,