summary refs log tree commit diff
path: root/synapse/rest/client/v1/room.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-07-21 14:12:22 -0400
committerGitHub <noreply@github.com>2021-07-21 18:12:22 +0000
commit590cc4e888f072f7f0788da1f93d80c7bc86be4a (patch)
tree1ef9646d1e274c70c30625fad70df5521a3ebbb3 /synapse/rest/client/v1/room.py
parentFix the hierarchy of OpenID providers in the docs. (#10445) (diff)
downloadsynapse-590cc4e888f072f7f0788da1f93d80c7bc86be4a.tar.xz
Add type hints to additional servlet functions (#10437)
Improves type hints for:

* parse_{boolean,integer}
* parse_{boolean,integer}_from_args
* parse_json_{value,object}_from_request

And fixes any incorrect calls that resulted from unknown types.
Diffstat (limited to 'synapse/rest/client/v1/room.py')
-rw-r--r--synapse/rest/client/v1/room.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py
index 5d309a534c..25ba52c624 100644
--- a/synapse/rest/client/v1/room.py
+++ b/synapse/rest/client/v1/room.py
@@ -754,7 +754,7 @@ class PublicRoomListRestServlet(TransactionRestServlet):
             if server:
                 raise e
 
-        limit = parse_integer(request, "limit", 0)
+        limit: Optional[int] = parse_integer(request, "limit", 0)
         since_token = parse_string(request, "since")
 
         if limit == 0: