From a5bf452202264c6d33254d3cb8a80cc417e0e776 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Fri, 3 Mar 2023 20:15:16 +0000 Subject: [PATCH] upload: Realm is not Optional in upload_export_tarball. af4eb8c0d5b0 marked the base class and local backend as non-Optional, but left the S3 backend as Optional for some reason. Remove it. --- zerver/lib/upload/s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/upload/s3.py b/zerver/lib/upload/s3.py index c9e912cce7..cd826e7ad9 100644 --- a/zerver/lib/upload/s3.py +++ b/zerver/lib/upload/s3.py @@ -421,7 +421,7 @@ class S3UploadBackend(ZulipUploadBackend): @override def upload_export_tarball( self, - realm: Realm | None, + realm: Realm, tarball_path: str, percent_callback: Callable[[Any], None] | None = None, ) -> str: