refactor: notation

This commit is contained in:
莘权 马 2023-11-10 16:28:29 +08:00
parent fc63cdf4df
commit 9ebd1d1bbb

View file

@ -134,7 +134,7 @@ class Role:
self._states.append(f"{idx}. {action}")
def _watch(self, actions: Iterable[Type[Action]]):
"""Listen to the corresponding behaviors in private message buffer"""
"""Watch Actions of interest. Role will select Messages caused by these Actions from its personal message buffer during _observe."""
tags = {any_to_str(t) for t in actions}
self._rc.watch.update(tags)
# check RoleContext after adding watch actions