diff options
author | Jonathan de Jong <jonathan@automatia.nl> | 2021-07-13 12:52:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-13 11:52:58 +0100 |
commit | 93729719b8451493e1df9930feb9f02f14ea5cef (patch) | |
tree | 90f9608894f30f35c824427aa8b3657a41246bdd /tests/storage/test_background_update.py | |
parent | [pyupgrade] `tests/` (#10347) (diff) | |
download | synapse-93729719b8451493e1df9930feb9f02f14ea5cef.tar.xz |
Use inline type hints in `tests/` (#10350)
This PR is tantamount to running: python3.8 -m com2ann -v 6 tests/ (com2ann requires python 3.8 to run)
Diffstat (limited to 'tests/storage/test_background_update.py')
-rw-r--r-- | tests/storage/test_background_update.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/storage/test_background_update.py b/tests/storage/test_background_update.py index 069db0edc4..0da42b5ac5 100644 --- a/tests/storage/test_background_update.py +++ b/tests/storage/test_background_update.py @@ -7,9 +7,7 @@ from tests import unittest class BackgroundUpdateTestCase(unittest.HomeserverTestCase): def prepare(self, reactor, clock, homeserver): - self.updates = ( - self.hs.get_datastore().db_pool.updates - ) # type: BackgroundUpdater + self.updates: BackgroundUpdater = self.hs.get_datastore().db_pool.updates # the base test class should have run the real bg updates for us self.assertTrue( self.get_success(self.updates.has_completed_background_updates()) |