From: Scott Gasch Date: Tue, 18 Oct 2022 06:05:47 +0000 (-0700) Subject: Add a comment for future fields in SmartFuture. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=3aaf3f04e82109a6e2e12d31946df8df2d7e5217;p=pyutils.git Add a comment for future fields in SmartFuture. --- 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: