diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-03-16 10:39:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 10:39:15 -0400 |
commit | fc9bd620ce94b64af46737e25a524336967782a1 (patch) | |
tree | 355f7d10a96a8ef9e47445b266d16b45f0ad0f63 /synapse/handlers/pagination.py | |
parent | Add some missing type hints to cache datastore. (#12216) (diff) | |
download | synapse-fc9bd620ce94b64af46737e25a524336967782a1.tar.xz |
Add a relations handler to avoid duplication. (#12227)
Adds a handler layer between the REST and datastore layers for relations.
Diffstat (limited to 'synapse/handlers/pagination.py')
-rw-r--r-- | synapse/handlers/pagination.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/handlers/pagination.py b/synapse/handlers/pagination.py index 60059fec3e..41679f7f86 100644 --- a/synapse/handlers/pagination.py +++ b/synapse/handlers/pagination.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. import logging -from typing import TYPE_CHECKING, Any, Collection, Dict, List, Optional, Set +from typing import TYPE_CHECKING, Collection, Dict, List, Optional, Set import attr @@ -422,7 +422,7 @@ class PaginationHandler: pagin_config: PaginationConfig, as_client_event: bool = True, event_filter: Optional[Filter] = None, - ) -> Dict[str, Any]: + ) -> JsonDict: """Get messages in a room. Args: @@ -431,6 +431,7 @@ class PaginationHandler: pagin_config: The pagination config rules to apply, if any. as_client_event: True to get events in client-server format. event_filter: Filter to apply to results or None + Returns: Pagination API results """ |