summary refs log tree commit diff
path: root/synapse/rest/media/v1/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-01-12 15:02:46 +0000
committerErik Johnston <erik@matrix.org>2018-01-12 15:02:46 +0000
commit694f1c1b185a8431679d39a80b7567ae68605e17 (patch)
tree629e6eea8f7fac133b0eef7eca7bc6357866d41b /synapse/rest/media/v1/_base.py
parentCorrectly reraise exception (diff)
downloadsynapse-694f1c1b185a8431679d39a80b7567ae68605e17.tar.xz
Fix up comments
Diffstat (limited to 'synapse/rest/media/v1/_base.py')
-rw-r--r--synapse/rest/media/v1/_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/media/v1/_base.py b/synapse/rest/media/v1/_base.py
index 1145904aeb..e7ac01da01 100644
--- a/synapse/rest/media/v1/_base.py
+++ b/synapse/rest/media/v1/_base.py
@@ -136,8 +136,8 @@ def respond_with_responder(request, responder, media_type, file_size, upload_nam
         request (twisted.web.http.Request)
         responder (Responder|None)
         media_type (str): The media/content type.
-        file_size (int): Size in bytes of the media. If not known it should be None
-        upload_name (str): The name of the requested file, if any.
+        file_size (int|None): Size in bytes of the media. If not known it should be None
+        upload_name (str|None): The name of the requested file, if any.
     """
     if not responder:
         respond_404(request)