From 2309d6354c2b62b663f41be3e2104b3126ddd292 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 23 Mar 2020 18:54:15 -0400 Subject: [PATCH] schema chaining --- lbry/schema/claim.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lbry/schema/claim.py b/lbry/schema/claim.py index 6a81ff133..2c3c84dcd 100644 --- a/lbry/schema/claim.py +++ b/lbry/schema/claim.py @@ -151,6 +151,8 @@ class BaseClaim: for key, value in kwargs.items(): setattr(self, key, value) + return self + @property def title(self) -> str: return self.claim.message.title @@ -267,6 +269,8 @@ class Stream(BaseClaim): super().update(**kwargs) + return self + @property def author(self) -> str: return self.message.author