summary refs log tree commit diff
path: root/synapse/media/_base.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-10-06 10:12:43 -0400
committerGitHub <noreply@github.com>2023-10-06 10:12:43 -0400
commit7615e2bf48d7bed3da7235d60f84a3c847ac78f5 (patch)
treeefcc6168b58427d1725175c27484a069670b7bad /synapse/media/_base.py
parentDrop unused tables & unneeded access token ID for events. (#16268) (diff)
downloadsynapse-7615e2bf48d7bed3da7235d60f84a3c847ac78f5.tar.xz
Return ThumbnailInfo in more places (#16438)
Improves type hints by using concrete types instead of
dictionaries.
Diffstat (limited to 'synapse/media/_base.py')
-rw-r--r--synapse/media/_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/media/_base.py b/synapse/media/_base.py
index d103b43449..13345acf75 100644
--- a/synapse/media/_base.py
+++ b/synapse/media/_base.py
@@ -332,7 +332,7 @@ class ThumbnailInfo:
     # Content type of thumbnail, e.g. image/png
     type: str
     # The size of the media file, in bytes.
-    length: Optional[int] = None
+    length: int
 
 
 @attr.s(slots=True, frozen=True, auto_attribs=True)