From 3aaf3f04e82109a6e2e12d31946df8df2d7e5217 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Mon, 17 Oct 2022 23:05:47 -0700 Subject: [PATCH] Add a comment for future fields in SmartFuture. --- src/pyutils/parallelize/smart_future.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pyutils/parallelize/smart_future.py b/src/pyutils/parallelize/smart_future.py index 631e25f..27cbabe 100644 --- a/src/pyutils/parallelize/smart_future.py +++ b/src/pyutils/parallelize/smart_future.py @@ -153,6 +153,9 @@ class SmartFuture(DeferredOperand): self.wrapped_future = wrapped_future self.id = id_generator.get("smart_future_id") + # Note: if you are adding any settable properties to this + # class, go add them to the set in DeferredOperand.__setattr__() + def get_id(self) -> int: """ Returns: -- 2.45.2