mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 00:43:45 +08:00
pickletools: accepts bytearray, use protocol from _typeshed (#9073)
This commit is contained in:
1 parent
27caa8f221
commit
a17fa5001a
2 files changed
+8
-11
No files matched your search
@@ -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