MatrixSynapse/synapse
David Robertson e8269ed391
Type hints for tests.appservice (#14990)
* 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
..
_scripts
api Properly typecheck tests.api (#14983) 2023-02-03 20:03:23 +00:00
app Allow enabling the asyncio reactor in complement (#14858) 2023-02-01 23:42:45 +00:00
appservice Type hints for tests.appservice (#14990) 2023-02-06 12:49:06 +00:00
config Implement MSC3958: suppress notifications from edits (#14960) 2023-02-03 14:31:14 -05:00
crypto
events Reject boolean power levels (#14944) 2023-01-31 10:57:02 +00:00
federation Faster joins: Refactor handling of servers in room (#14954) 2023-02-03 15:39:59 +00:00
handlers Faster joins: Refactor handling of servers in room (#14954) 2023-02-03 15:39:59 +00:00
http Add helper to parse an enum from query args & use it. (#14956) 2023-02-01 21:35:24 +00:00
logging Tag /send_join responses to detect faster joins (#14950) 2023-01-31 12:43:20 +00:00
metrics
module_api
push Only notify the target of a membership event (#14971) 2023-02-06 11:29:51 +00:00
replication
res
rest Add helper to parse an enum from query args & use it. (#14956) 2023-02-01 21:35:24 +00:00
server_notices
spam_checker_api
state
static
storage Type hints for tests.appservice (#14990) 2023-02-06 12:49:06 +00:00
streams Add helper to parse an enum from query args & use it. (#14956) 2023-02-01 21:35:24 +00:00
types
util
__init__.py
event_auth.py Reject boolean power levels (#14944) 2023-01-31 10:57:02 +00:00
notifier.py
py.typed
server.py
visibility.py