- Apr 27, 2023
-
-
Patrick Cloke authored
Cleans-up the schema delta files: * Removes no-op functions. * Adds missing type hints to function parameters. * Fixes any issues with type hints. This also renames one (very old) schema delta to avoid a conflict that mypy complains about.
-
Patrick Cloke authored
-
- Apr 24, 2023
-
-
Patrick Cloke authored
-
- Mar 09, 2023
-
-
Patrick Cloke authored
-
Patrick Cloke authored
And fix any issues from having those type hints.
-
- Feb 28, 2023
-
-
Patrick Cloke authored
-
- Feb 17, 2023
-
-
Patrick Cloke authored
This file was being ignored by mypy, we remove that and add the missing type hints & deal with any fallout.
-
- Feb 14, 2023
-
-
Patrick Cloke authored
Adds a return type to HomeServerTestCase.make_homeserver and deal with any variables which are no longer Any.
-
- Feb 09, 2023
-
-
Patrick Cloke authored
-
David Robertson authored
* -> None for test methods * A first batch of type fixes * Introduce common parent test case * Fixup that big test method * tests.module_api passes mypy * Changelog
-
- Feb 08, 2023
-
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Patrick Cloke authored
To make it easier to see which files still need to be fixed.
-
- Feb 07, 2023
-
-
David Robertson authored
* Fix MediaStorage type hint * Typecheck tests.rest.media.v1.test_media_storage * Changelog * Remove assert and make the comment succinct * Fix syntax for olddeps
-
David Robertson authored
* Proper types for tests.test_terms_auth * Changelog
-
David Robertson authored
* Tweak http types in Synapse AFACIS these are correct, and they make mypy happier on tests.http. * Type hints for test_proxyagent * type hints for test_srv_resolver * test_matrix_federation_agent * tests.http.server._base * tests.http.__init__ * tests.http.test_additional_resource * tests.http.test_client * tests.http.test_endpoint * tests.http.test_matrixfederationclient * tests.http.test_servlet * tests.http.test_simple_client * tests.http.test_site * One fixup in tests.server * Untyped defs * Changelog * Fixup syntax for Python 3.7 * Fix olddeps syntax * Use a twisted IPv4 addr for dummy_address * Fix typo, thanks Sean Co-authored-by:
Sean Quah <8349537+squahtx@users.noreply.github.com> * Remove redundant `Optional` --------- Co-authored-by:
Sean Quah <8349537+squahtx@users.noreply.github.com>
-
- Feb 06, 2023
-
-
Patrick Cloke authored
-
David Robertson authored
* Make tests.federation pass mypy * Untyped defs in tests.federation.transport * test methods return None * Remaining type hints in tests.federation * Changelog * Avoid an uncessary type-ignore
-
Patrick Cloke authored
-
David Robertson authored
* canonicaljson has stubs now since https://github.com/matrix-org/python-canonicaljson/pull/52 which is included in the lockfile version we use for type checking. * Changelog
-
David Robertson authored
* 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
-
- Feb 03, 2023
-
-
David Robertson authored
-
David Robertson authored
-
- Jan 26, 2023
-
-
Patrick Cloke authored
* FIx-up type hints in tests.logging. * Add missing type hints to test_transactions.
-
Andrew Morgan authored
-
- Jan 25, 2023
-
-
Patrick Cloke authored
-
Andrew Morgan authored
-
- Jan 22, 2023
-
-
Andrew Morgan authored
-
- Jan 21, 2023
-
-
Andrew Morgan authored
-
- Jan 11, 2023
-
-
Patrick Cloke authored
-
- Dec 28, 2022
-
-
Patrick Cloke authored
Adds type hints to tests.metrics and tests.crypto.
-
- Dec 16, 2022
-
-
Patrick Cloke authored
-
Patrick Cloke authored
And do not allow untyped defs in tests.handlers.
-
- Dec 13, 2022
-
-
David Robertson authored
* Declare new config * Parse new config * Read new config * Don't use trial/our TestCase where it's not needed Before: ``` $ time trial tests/events/test_utils.py > /dev/null real 0m2.277s user 0m2.186s sys 0m0.083s ``` After: ``` $ time trial tests/events/test_utils.py > /dev/null real 0m0.566s user 0m0.508s sys 0m0.056s ``` * Helper to upsert to event fields without exceeding size limits. * Use helper when adding invite/knock state Now that we allow admins to include events in prejoin room state with arbitrary state keys, be a good Matrix citizen and ensure they don't accidentally create an oversized event. * Changelog * Move StateFilter tests should have done this in #14668 * Add extra methods to StateFilter * Use StateFilter * Ensure test file enforces typed defs; alphabetise * Workaround surprising get_current_state_ids * Whoops, fix mypy
-
- Dec 12, 2022
-
-
David Robertson authored
* Enable `--warn-redundant-casts` option in mypy Doesn't do much but helps me sleep better at night. * Changelog * Fix name of the ignore * Fix one more missed cast Not sure why I didn't see this one locally, maybe I needed a poetry update * Remove old comment Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
- Dec 09, 2022
-
-
Patrick Cloke authored
Adds missing type hints to `tests.storage` package and does not allow untyped definitions.
-
- Dec 02, 2022
-
-
Patrick Cloke authored
Removes files under tests.util from the ignored by list, then fully types all tests/util/*.py files.
-
- Nov 25, 2022
-
-
Ashish Kumar authored
This commit adds support for handling a provided avatar picture URL when logging in via SSO. Signed-off-by:
Ashish Kumar <ashfame@users.noreply.github.com> Fixes #9357.
-
- Nov 22, 2022
-
-
Patrick Cloke authored
-
- Nov 17, 2022
-
-
Andrew Morgan authored
-