mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 14:14:58 -04:00
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.
This commit is contained in:
parent
5b68816de9
commit
590cc4e888
6 changed files with 177 additions and 67 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue