1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-28 10:28:32 +00:00
synapse/tests/appservice
David Robertson e8269ed391
Type hints for tests.appservice ()
* Accept a Sequence of events in synapse.appservice

This avoids some casts/ignores in the tests I'm about to fixup. It seems
that `List[Mock]` is not a subtype of `List[EventBase]`, but
`Sequence[Mock]` is a subtype of `Sequence[EventBase]`. So presumably
`Mock` is considered a subtype of anything, much like `Any`.

* make tests.appservice.test_scheduler pass mypy

* Extra hints in tests.appservice.test_scheduler

* Extra hints in tests.appservice.test_api

* Extra hints in tests.appservice.test_appservice

* Disallow untyped defs

* Changelog
2023-02-06 12:49:06 +00:00
..
__init__.py Remove redundant "coding: utf-8" lines () 2021-04-14 15:34:27 +01:00
test_api.py Type hints for tests.appservice () 2023-02-06 12:49:06 +00:00
test_appservice.py Type hints for tests.appservice () 2023-02-06 12:49:06 +00:00
test_scheduler.py Type hints for tests.appservice () 2023-02-06 12:49:06 +00:00