Skip to content

optype.pickle

For the pickle standard library, optype.pickle provides the following interfaces:

method(s) signature (bound) type
__reduce__ () -> R CanReduce[+R: str | tuple =]
__reduce_ex__ (CanIndex) -> R CanReduceEx[+R: str | tuple =]
__getstate__ () -> S CanGetstate[+S]
__setstate__ (S) -> None CanSetstate[-S]
__getnewargs__
__new__
() -> tuple[V, ...]
(V) -> Self
CanGetnewargs[+V]
__getnewargs_ex__
__new__
() -> tuple[tuple[V, ...], dict[str, KV]]
(*tuple[V, ...], **dict[str, KV]) -> Self
CanGetnewargsEx[+V, ~KV]