summary refs log tree commit diff
path: root/tests/rest/admin/test_background_updates.py
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2021-12-16 20:59:56 +0100
committerGitHub <noreply@github.com>2021-12-16 14:59:56 -0500
commit8428ef66c73efcc01cdbe05ac8bc1c99c4c20a20 (patch)
tree071c623f9456559deb3aa2e3cae76a376b2cbdd1 /tests/rest/admin/test_background_updates.py
parentAdd type hints to `synapse/storage/databases/main/transactions.py` (#11589) (diff)
downloadsynapse-8428ef66c73efcc01cdbe05ac8bc1c99c4c20a20.tar.xz
Add type hints to `synapse/tests/rest/admin` (#11590)
Diffstat (limited to 'tests/rest/admin/test_background_updates.py')
-rw-r--r--tests/rest/admin/test_background_updates.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rest/admin/test_background_updates.py b/tests/rest/admin/test_background_updates.py
index 4d152c0d66..1e3fe9c62c 100644
--- a/tests/rest/admin/test_background_updates.py
+++ b/tests/rest/admin/test_background_updates.py
@@ -23,6 +23,7 @@ from synapse.api.errors import Codes
 from synapse.rest.client import login
 from synapse.server import HomeServer
 from synapse.storage.background_updates import BackgroundUpdater
+from synapse.types import JsonDict
 from synapse.util import Clock
 
 from tests import unittest
@@ -96,7 +97,7 @@ class BackgroundUpdatesTestCase(unittest.HomeserverTestCase):
     def _register_bg_update(self) -> None:
         "Adds a bg update but doesn't start it"
 
-        async def _fake_update(progress, batch_size) -> int:
+        async def _fake_update(progress: JsonDict, batch_size: int) -> int:
             await self.clock.sleep(0.2)
             return batch_size