diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-08-26 07:53:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 11:53:52 +0000 |
commit | 1aa0dad02187c3b972187f5952cfbce336b0ca5c (patch) | |
tree | 6c948ed89be836c765e27bf1a4c109d5df1426d2 /synapse/rest/client/groups.py | |
parent | Cache the result of fetching the room hierarchy over federation. (#10647) (diff) | |
download | synapse-1aa0dad02187c3b972187f5952cfbce336b0ca5c.tar.xz |
Additional type hints for REST servlets (part 2). (#10674)
Applies the changes from #10665 to additional modules.
Diffstat (limited to 'synapse/rest/client/groups.py')
-rw-r--r-- | synapse/rest/client/groups.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/groups.py b/synapse/rest/client/groups.py index 6285680c00..c3667ff8aa 100644 --- a/synapse/rest/client/groups.py +++ b/synapse/rest/client/groups.py @@ -26,6 +26,7 @@ from synapse.api.constants import ( ) from synapse.api.errors import Codes, SynapseError from synapse.handlers.groups_local import GroupsLocalHandler +from synapse.http.server import HttpServer from synapse.http.servlet import ( RestServlet, assert_params_in_dict, @@ -930,7 +931,7 @@ class GroupsForUserServlet(RestServlet): return 200, result -def register_servlets(hs: "HomeServer", http_server): +def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None: GroupServlet(hs).register(http_server) GroupSummaryServlet(hs).register(http_server) GroupInvitedUsersServlet(hs).register(http_server) |