mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
pickletools: accepts bytearray, use protocol from _typeshed (#9073)
This commit is contained in:
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user