mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 03:05:01 -04:00
Remove redundant types from comments. (#14412)
Remove type hints from comments which have been added as Python type hints. This helps avoid drift between comments and reality, as well as removing redundant information. Also adds some missing type hints which were simple to fill in.
This commit is contained in:
parent
882277008c
commit
d8cc86eff4
55 changed files with 174 additions and 176 deletions
|
@ -360,13 +360,13 @@ class HomeserverTestCase(TestCase):
|
|||
store.db_pool.updates.do_next_background_update(False), by=0.1
|
||||
)
|
||||
|
||||
def make_homeserver(self, reactor, clock):
|
||||
def make_homeserver(self, reactor: MemoryReactor, clock: Clock):
|
||||
"""
|
||||
Make and return a homeserver.
|
||||
|
||||
Args:
|
||||
reactor: A Twisted Reactor, or something that pretends to be one.
|
||||
clock (synapse.util.Clock): The Clock, associated with the reactor.
|
||||
clock: The Clock, associated with the reactor.
|
||||
|
||||
Returns:
|
||||
A homeserver suitable for testing.
|
||||
|
@ -426,9 +426,8 @@ class HomeserverTestCase(TestCase):
|
|||
|
||||
Args:
|
||||
reactor: A Twisted Reactor, or something that pretends to be one.
|
||||
clock (synapse.util.Clock): The Clock, associated with the reactor.
|
||||
homeserver (synapse.server.HomeServer): The HomeServer to test
|
||||
against.
|
||||
clock: The Clock, associated with the reactor.
|
||||
homeserver: The HomeServer to test against.
|
||||
|
||||
Function to optionally be overridden in subclasses.
|
||||
"""
|
||||
|
@ -452,11 +451,10 @@ class HomeserverTestCase(TestCase):
|
|||
given content.
|
||||
|
||||
Args:
|
||||
method (bytes/unicode): The HTTP request method ("verb").
|
||||
path (bytes/unicode): The HTTP path, suitably URL encoded (e.g.
|
||||
escaped UTF-8 & spaces and such).
|
||||
content (bytes or dict): The body of the request. JSON-encoded, if
|
||||
a dict.
|
||||
method: The HTTP request method ("verb").
|
||||
path: The HTTP path, suitably URL encoded (e.g. escaped UTF-8 & spaces
|
||||
and such). content (bytes or dict): The body of the request.
|
||||
JSON-encoded, if a dict.
|
||||
shorthand: Whether to try and be helpful and prefix the given URL
|
||||
with the usual REST API path, if it doesn't contain it.
|
||||
federation_auth_origin: if set to not-None, we will add a fake
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue