mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-20 08:58:41 -04:00
Fix-up type hints for tests.push module. (#14816)
This commit is contained in:
parent
d6bda5addd
commit
7f2cabf271
7 changed files with 67 additions and 62 deletions
|
@ -46,7 +46,7 @@ class HTTPPusherTests(HomeserverTestCase):
|
|||
|
||||
m = Mock()
|
||||
|
||||
def post_json_get_json(url, body):
|
||||
def post_json_get_json(url: str, body: JsonDict) -> Deferred:
|
||||
d: Deferred = Deferred()
|
||||
self.push_attempts.append((d, url, body))
|
||||
return make_deferred_yieldable(d)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue