mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 09:15:03 -04:00
Add final type hint to tests.unittest. (#15072)
Adds a return type to HomeServerTestCase.make_homeserver and deal with any variables which are no longer Any.
This commit is contained in:
parent
119e0795a5
commit
42aea0d8af
55 changed files with 433 additions and 320 deletions
|
@ -127,6 +127,7 @@ class ChannelsTestCase(BaseMultiWorkerStreamTestCase):
|
|||
|
||||
# ... updating the cache ID gen on the master still shouldn't cause the
|
||||
# deferred to wake up.
|
||||
assert store._cache_id_gen is not None
|
||||
ctx = store._cache_id_gen.get_next()
|
||||
self.get_success(ctx.__aenter__())
|
||||
self.get_success(ctx.__aexit__(None, None, None))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue