MatrixSynapse/synapse
David Robertson 797ee7812d
Relax `ignore-missing-imports` for modules that have stubs now and update mypy (#11006)
Updating mypy past version 0.9 means that third-party stubs are no-longer distributed with typeshed. See http://mypy-lang.blogspot.com/2021/06/mypy-0900-released.html for details.
We therefore pull in stub packages in setup.py

Additionally, some modules that we were previously ignoring import failures for now have stubs. So let's use them.

The rest of this change consists of fixups to make the newer mypy + stubs pass CI.

Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2021-10-08 14:49:41 +01:00
..
_scripts
api Remove the deprecated BaseHandler. (#11005) 2021-10-08 07:44:43 -04:00
app Require direct references to configuration variables. (#10985) 2021-10-06 10:47:41 -04:00
appservice
config Relax `ignore-missing-imports` for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
crypto
events Add a spamchecker method to allow or deny 3pid invites (#10894) 2021-10-06 17:18:13 +02:00
federation Strip "join_authorised_via_users_server" from join events which do not need it. (#10933) 2021-10-01 11:39:17 -04:00
groups
handlers Fix overwriting profile when making room public (#11003) 2021-10-08 12:52:48 +01:00
http Relax `ignore-missing-imports` for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
logging Relax `ignore-missing-imports` for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
metrics Relax `ignore-missing-imports` for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
module_api
push Relax `ignore-missing-imports` for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
replication Require direct references to configuration variables. (#10985) 2021-10-06 10:47:41 -04:00
res
rest Relax `ignore-missing-imports` for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
server_notices disallow-untyped-defs for synapse.server_notices (#11021) 2021-10-07 19:55:15 +01:00
spam_checker_api
state `disallow-untyped-defs` for `synapse.state` (#11004) 2021-10-06 17:55:25 +00:00
static
storage Relax `ignore-missing-imports` for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
streams
util Relax `ignore-missing-imports` for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
__init__.py 1.44.0 2021-10-05 13:45:24 +01:00
event_auth.py Ensure that we reject events which use rejected events for auth (#10956) 2021-10-05 13:23:29 +01:00
notifier.py
python_dependencies.py
server.py Remove the deprecated BaseHandler. (#11005) 2021-10-08 07:44:43 -04:00
types.py
visibility.py