diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-02-17 13:19:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 18:19:38 +0000 |
commit | c9b9143655d39ef691bd21ebc03434feb0dc377f (patch) | |
tree | 7337697cd6d0fcecace3a7344960e28430635e63 /tests/appservice | |
parent | Add account data to export command (#14969) (diff) | |
download | synapse-c9b9143655d39ef691bd21ebc03434feb0dc377f.tar.xz |
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.
Diffstat (limited to 'tests/appservice')
-rw-r--r-- | tests/appservice/test_scheduler.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/appservice/test_scheduler.py b/tests/appservice/test_scheduler.py index febcc1499d..e2a3bad065 100644 --- a/tests/appservice/test_scheduler.py +++ b/tests/appservice/test_scheduler.py @@ -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: |