diff --git a/src/appose/types.py b/src/appose/types.py index 9d94eec..0de6bd4 100644 --- a/src/appose/types.py +++ b/src/appose/types.py @@ -89,10 +89,10 @@ def ndarray(self): def _appose_object_hook(obj: Dict): - type = obj.get("appose_type") - if type == "shm": + atype = obj.get("appose_type") + if atype == "shm": return SharedMemory(name=(obj["name"]), size=(obj["size"])) - elif type == "ndarray": + elif atype == "ndarray": return NDArray(obj["dtype"], obj["shape"], obj["shm"]) else: return obj