From 4e8374856d6611980c676e355eaf4de464ec312e Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 16 Nov 2017 18:03:46 +0000 Subject: [PATCH] Document get_groups_for_user --- synapse/appservice/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/synapse/appservice/__init__.py b/synapse/appservice/__init__.py index 916ccf714..e49452532 100644 --- a/synapse/appservice/__init__.py +++ b/synapse/appservice/__init__.py @@ -274,6 +274,12 @@ class ApplicationService(object): def get_groups_for_user(self, user_id): """Get the groups that this user is associated with by this AS + + Args: + user_id (str): The ID of the user. + + Returns: + iterable[str]: an iterable that yields group_id strings. """ return ( regex_obj["group_id"]