anonymousland-synapse/synapse
David Robertson 6463244375
Remove unused # type: ignores (#12531)
Over time we've begun to use newer versions of mypy, typeshed, stub
packages---and of course we've improved our own annotations. This makes
some type ignore comments no longer necessary. I have removed them.

There was one exception: a module that imports `select.epoll`. The
ignore is redundant on Linux, but I've kept it ignored for those of us
who work on the source tree using not-Linux. (#11771)

I'm more interested in the config line which enforces this. I want
unused ignores to be reported, because I think it's useful feedback when
annotating to know when you've fixed a problem you had to previously
ignore.

* Installing extras before typechecking

Lacking an easy way to install all extras generically, let's bite the bullet and
make install the hand-maintained `all` extra before typechecking.

Now that https://github.com/matrix-org/backend-meta/pull/6 is merged to
the release/v1 branch.
2022-04-27 14:03:44 +01:00
..
_scripts Add missing type hints to config classes. (#12402) 2022-04-11 12:07:23 -04:00
api Implement MSC2815: allow room moderators to view redacted event content (#12427) 2022-04-20 12:57:39 +01:00
app Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
appservice MSC3202: Fix device_unused_fallback_keys -> device_unused_fallback_key_types (#12520) 2022-04-22 16:03:46 +01:00
config Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
crypto Bump black and click versions (#12320) 2022-04-05 11:04:28 +01:00
events Consistently use collections.abc.Mapping to check frozendict. (#12564) 2022-04-27 09:00:07 -04:00
federation Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
groups Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
handlers Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
http Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
logging Add opentracing spans to calls to external cache (#12380) 2022-04-07 13:18:29 +01:00
metrics Update type annotations for compatiblity with prometheus_client 0.14 (#12389) 2022-04-06 12:59:04 +00:00
module_api Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
push Refactor and convert Linearizer to async (#12357) 2022-04-05 15:43:52 +01:00
replication Add opentracing spans to calls to external cache (#12380) 2022-04-07 13:18:29 +01:00
res Fix Jinja templating error when generating thumbnail URLs. (#12510) 2022-04-20 12:03:03 -04:00
rest Add option to enable token registration without requiring 3pids (#12526) 2022-04-27 12:57:53 +00:00
server_notices Update the server notices user profile in room if changed. (#12115) 2022-04-08 07:51:27 -04:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Refactor and convert Linearizer to async (#12357) 2022-04-05 15:43:52 +01:00
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
streams Generate historic pagination token for /messages when no ?from token provided (#12370) 2022-04-06 11:40:28 +01:00
util Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
__init__.py Dump setuptools; correct pyproject version number (#12478) 2022-04-20 17:33:20 +01:00
event_auth.py Remove excess condition on knock->leave check (#11900) 2022-02-22 18:35:01 +00:00
notifier.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
server.py Remove references to unstable identifiers from MSC3440. (#12382) 2022-04-12 08:42:03 -04:00
types.py Make StreamToken and RoomStreamToken methods propagate cancellations (#12366) 2022-04-05 16:56:52 +01:00
visibility.py Optimise backfill calculation (#12522) 2022-04-26 10:27:11 +01:00