class _UpdatingMixin(IntoEndnodeUpdatesMixin):
- _on_update: Callable
def __init__(self, on_update: Callable, **kwargs) -> None:
super().__init__(**kwargs)
setattr(self, key, value)
def _unset(self, key: str) -> None:
- attr = getattr(self, key)
- if isinstance(attr, tuple):
- setattr(self, key, tuple())
- else:
- attr.clear()
+ getattr(self, key).clear()
def _is_set(self, key: str) -> bool:
return hasattr(self, key)
f'RAW:{self.topic.who} set topic: {self.topic.what}')
return None
assert update.key == 'user_ids'
- if update.value is None:
- return None
assert isinstance(update.value, set)
d = {'NUHS:joining': tuple(id_ for id_ in update.value
if id_ not in self.user_ids)