diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-03-10 18:15:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 18:15:56 +0000 |
commit | a7a379006651ea219c2618c0a47e8f4053a9e769 (patch) | |
tree | 69e7b5a439c4304e52dc1170dd74ee80f3053843 /synapse/rest | |
parent | Fix the auth provider on the logins metric (#9573) (diff) | |
download | synapse-a7a379006651ea219c2618c0a47e8f4053a9e769.tar.xz |
Convert Requester to attrs (#9586)
... because namedtuples suck Fix up a couple of other annotations to keep mypy happy.
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/media/v1/media_repository.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py index 0641924f18..8b4841ed5d 100644 --- a/synapse/rest/media/v1/media_repository.py +++ b/synapse/rest/media/v1/media_repository.py @@ -35,6 +35,7 @@ from synapse.api.errors import ( from synapse.config._base import ConfigError from synapse.logging.context import defer_to_thread from synapse.metrics.background_process_metrics import run_as_background_process +from synapse.types import UserID from synapse.util.async_helpers import Linearizer from synapse.util.retryutils import NotRetryingDestination from synapse.util.stringutils import random_string @@ -145,7 +146,7 @@ class MediaRepository: upload_name: Optional[str], content: IO, content_length: int, - auth_user: str, + auth_user: UserID, ) -> str: """Store uploaded content for a local user and return the mxc URL |