mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:56:07 -04:00
type-hint HomeserverTestcase.setup_test_homeserver
(#10961)
* type-hint `HomeserverTestcase.setup_test_homeserver` For better IDE completion. A small drive-by.
This commit is contained in:
parent
7e440520c9
commit
e46ac85d67
4 changed files with 21 additions and 9 deletions
|
@ -20,7 +20,7 @@ import inspect
|
|||
import logging
|
||||
import secrets
|
||||
import time
|
||||
from typing import Callable, Dict, Iterable, Optional, Tuple, Type, TypeVar, Union
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, Tuple, Type, TypeVar, Union
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
from canonicaljson import json
|
||||
|
@ -449,7 +449,7 @@ class HomeserverTestCase(TestCase):
|
|||
client_ip,
|
||||
)
|
||||
|
||||
def setup_test_homeserver(self, *args, **kwargs):
|
||||
def setup_test_homeserver(self, *args: Any, **kwargs: Any) -> HomeServer:
|
||||
"""
|
||||
Set up the test homeserver, meant to be called by the overridable
|
||||
make_homeserver. It automatically passes through the test class's
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue