mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-27 21:05:16 -04:00
Fix-up type hints in tests/server.py. (#15084)
This file was being ignored by mypy, we remove that and add the missing type hints & deal with any fallout.
This commit is contained in:
parent
61bfcd669a
commit
c9b9143655
9 changed files with 226 additions and 129 deletions
|
@ -11,12 +11,13 @@
|
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
from typing import TYPE_CHECKING, List, Optional, Sequence, Tuple, cast
|
||||
from typing import List, Optional, Sequence, Tuple, cast
|
||||
from unittest.mock import Mock
|
||||
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from twisted.internet import defer
|
||||
from twisted.test.proto_helpers import MemoryReactor
|
||||
|
||||
from synapse.appservice import (
|
||||
ApplicationService,
|
||||
|
@ -40,9 +41,6 @@ from tests.test_utils import simple_async_mock
|
|||
|
||||
from ..utils import MockClock
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from twisted.internet.testing import MemoryReactor
|
||||
|
||||
|
||||
class ApplicationServiceSchedulerTransactionCtrlTestCase(unittest.TestCase):
|
||||
def setUp(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue