diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-01-15 10:57:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 10:57:37 -0500 |
commit | d34c6e1279a24c5eb8afb962a29950c85fbfbf8a (patch) | |
tree | ad3692ab319148f50e3d1a18a467ece0702a4971 /synapse/storage/databases/main | |
parent | Improve UsernamePickerTestCase (#9112) (diff) | |
download | synapse-d34c6e1279a24c5eb8afb962a29950c85fbfbf8a.tar.xz |
Add type hints to media rest resources. (#9093)
Diffstat (limited to 'synapse/storage/databases/main')
-rw-r--r-- | synapse/storage/databases/main/media_repository.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/media_repository.py b/synapse/storage/databases/main/media_repository.py index 4b2f224718..283c8a5e22 100644 --- a/synapse/storage/databases/main/media_repository.py +++ b/synapse/storage/databases/main/media_repository.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd +# Copyright 2020-2021 The Matrix.org Foundation C.I.C. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -169,7 +170,7 @@ class MediaRepositoryStore(MediaRepositoryBackgroundUpdateStore): async def get_local_media_before( self, before_ts: int, size_gt: int, keep_profiles: bool, - ) -> Optional[List[str]]: + ) -> List[str]: # to find files that have never been accessed (last_access_ts IS NULL) # compare with `created_ts` |