mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-11 12:44:56 -04:00
Add type hints to synapse/tests/rest/admin
(#11590)
This commit is contained in:
parent
1847d027e6
commit
8428ef66c7
7 changed files with 74 additions and 57 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue