- fix some pickling issues
This commit is contained in:
1 parent
cbb135e13e
commit
f1add2f8ad
3 files changed
+10
-38
No files matched your search
@@ -27,6 +27,12 @@ class Ome(UserDict):
|
||||
else:
|
||||
return new
|
||||
|
||||
def __getstate__(self) -> dict[str, Any]:
|
||||
return self.data
|
||||
|
||||
def __setstate__(self, state: dict[str, Any]) -> None:
|
||||
self.data = state
|
||||
|
||||
|
||||
class OmeList(UserList):
|
||||
def __getitem__(self, item: int) -> Ome | OmeList | int | float | str:
|
||||
|
||||
Reference in new issue
Block a user