- Oct 21, 2021
-
-
Patrick Cloke authored
And require type hints for this module.
-
- Oct 18, 2021
-
-
Patrick Cloke authored
* Convert UserPresenceState to attrs. * Remove args/kwargs from error classes and explicitly pass msg/errorcode.
-
- Oct 14, 2021
-
-
Patrick Cloke authored
-
- Oct 13, 2021
-
-
Patrick Cloke authored
Except `synapse/events/__init__.py`, which will be done in a follow-up.
-
Patrick Cloke authored
-
- Oct 12, 2021
- Oct 11, 2021
-
-
David Robertson authored
-
- Oct 08, 2021
-
-
David Robertson authored
Also mark `synapse.streams` as having has no untyped defs Co-authored-by:
Sean Quah <8349537+squahtx@users.noreply.github.com>
-
David Robertson authored
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>
-
- Oct 07, 2021
-
-
David Robertson authored
-
- Oct 06, 2021
-
-
David Robertson authored
* `disallow-untyped-defs` for `synapse.state` Much smaller than I was expecting!
-
David Robertson authored
The following modules now pass `disallow_untyped_defs`: * synapse.util.caches.cached_call * synapse.util.caches.lrucache * synapse.util.caches.response_cache * synapse.util.caches.stream_change_cache * synapse.util.caches.ttlcache pass * synapse.util.daemonize * synapse.util.patch_inline_callbacks pass `no-untyped-defs` * synapse.util.versionstring Additional typing in synapse.util.metrics. Didn't get this to pass `no-untyped-defs`, think I'll need to watch #10847
-
- Sep 30, 2021
-
-
David Robertson authored
* Pull out GetUserDirectoryTables helper * Don't rebuild the dir in tests that don't need it In #10796 I changed registering a user to add directory entries under. This means we don't have to force a directory regbuild in to tests of the user directory search. * Move test_initial to tests/storage * Add type hints to both test_user_directory files Co-authored-by:
Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-
- Sep 24, 2021
-
-
David Robertson authored
* Improve typing in user_directory files This makes the user_directory.py in storage pass most of mypy's checks (including `no-untyped-defs`). Unfortunately that file is in the tangled web of Store class inheritance so doesn't pass mypy at the moment. The handlers directory has already been mypyed. Co-authored-by:
reivilibre <olivier@librepush.net>
-
- Sep 20, 2021
-
-
Patrick Cloke authored
Adds missing type hints to methods in the synapse.handlers module and requires all methods to have type hints there. This also removes the unused construct_auth_difference method from the FederationHandler.
-
- Sep 15, 2021
-
-
Patrick Cloke authored
-
Patrick Cloke authored
Including admin, consent, key, synapse, and media. All REST servlets (the synapse.rest module) now require typed method definitions.
-
- Sep 14, 2021
-
-
reivilibre authored
Also enables Mypy for related tests.
-
- Sep 10, 2021
-
-
reivilibre authored
-
- Sep 06, 2021
-
-
David Robertson authored
-
- Sep 03, 2021
-
-
Patrick Cloke authored
Additionally this enforce type hints on all function signatures inside of the synapse.rest.client package.
-
- Aug 27, 2021
-
-
Richard van der Hoff authored
Turns out that the functionality added in #10546 to skip TLS was incompatible with older Twisted versions, so we need to be a bit more inventive. Also, add a test to (hopefully) not break this in future. Sadly, testing TLS is really hard.
-
- Aug 24, 2021
-
-
Patrick Cloke authored
-
- Aug 20, 2021
-
-
David Robertson authored
-
- Aug 19, 2021
-
-
Patrick Cloke authored
A user will still see this room if it is in a local cache, but it will not reappear if clearing the cache and reloading.
-
- Aug 18, 2021
-
-
Dirk Klimpel authored
-
- Aug 16, 2021
-
-
Michael Telatynski authored
-
- Aug 11, 2021
-
-
Patrick Cloke authored
And ensure that the file is checked via mypy.
-
- Jul 14, 2021
-
-
Patrick Cloke authored
-
- Jul 05, 2021
-
-
Erik Johnston authored
-
- Jun 17, 2021
-
-
Brendan Abolivier authored
Fixes #9778 ACME v1 has been fully decommissioned for existing installs on June 1st 2021(see https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430/27), so we can now safely remove it from Synapse.
-
- Jun 08, 2021
-
-
Patrick Cloke authored
-
- Jun 04, 2021
-
-
Richard van der Hoff authored
-
- May 24, 2021
-
-
Patrick Cloke authored
-
- May 20, 2021
-
-
Erik Johnston authored
Instead of parsing the full response to `/send_join` into Python objects (which can be huge for large rooms) and *then* parsing that into events, we instead use ijson to stream parse the response directly into `EventBase` objects.
-
- May 05, 2021
-
-
Erik Johnston authored
This will double count slightly in the presence of interned strings. It's off by default as it can consume a lot of resources.
-
- Apr 27, 2021
-
-
Andrew Morgan authored
I went through and removed a bunch of cruft that was lying around for compatibility with old Python versions. This PR also will now prevent Synapse from starting unless you're running Python 3.6+.
-
- Apr 05, 2021
-
-
Jonathan de Jong authored
-
- Mar 26, 2021
-
-
Erik Johnston authored
Running `dmypy run` will do a `mypy` check while spinning up a daemon that makes rerunning `dmypy run` a lot faster. `dmypy` doesn't support `follow_imports = silent` and has `local_partial_types` enabled, so this PR enables those options and fixes the issues that were newly raised. Note that `local_partial_types` will be enabled by default in upcoming mypy releases.
-