- Apr 20, 2022
-
-
David Robertson authored
* Remove leftover references to setup.py Missed in #12478. * Changelog
-
David Robertson authored
-
- Apr 11, 2022
-
-
Patrick Cloke authored
-
David Robertson authored
Of note: * No untyped defs in `register_new_matrix_user` This one might be contraversial. `request_registration` has three dependency-injection arguments used for testing. I'm removing the injection of the `requests` module and using `unitest.mock.patch` in the test cases instead. Doing `reveal_type(requests)` and `reveal_type(requests.get)` before the change: ``` synapse/_scripts/register_new_matrix_user.py:45: note: Revealed type is "Any" synapse/_scripts/register_new_matrix_user.py:46: note: Revealed type is "Any" ``` And after: ``` synapse/_scripts/register_new_matrix_user.py:44: note: Revealed type is "types.ModuleType" synapse/_scripts/register_new_matrix_user.py:45: note: Revealed type is "def (url: Union[builtins.str, builtins.bytes], params: Union[Union[_typeshed.SupportsItems[Union[builtins.str, builtins.bytes, builtins.int, builtins.float], Union[builtins.str, builtins.bytes, builtins.int, builtins.float, typing.Iterable[Union[builtins.str, builtins.bytes, builtins.int, builtins.float]], None]], Tuple[Union[builtins.str, builtins.bytes, builtins.int, builtins.float], Union[builtins.str, builtins.bytes, builtins.int, builtins.float, typing.Iterable[Union[builtins.str, builtins.bytes, builtins.int, builtins.float]], None]], typing.Iterable[Tuple[Union[builtins.str, builtins.bytes, builtins.int, builtins.float], Union[builtins.str, builtins.bytes, builtins.int, builtins.float, typing.Iterable[Union[builtins.str, builtins.bytes, builtins.int, builtins.float]], None]]], builtins.str, builtins.bytes], None] =, data: Union[Any, None] =, headers: Union[Any, None] =, cookies: Union[Any, None] =, files: Union[Any, None] =, auth: Union[Any, None] =, timeout: Union[Any, None] =, allow_redirects: builtins.bool =, proxies: Union[Any, None] =, hooks: Union[Any, None] =, stream: Union[Any, None] =, verify: Union[Any, None] =, cert: Union[Any, None] =, json: Union[Any, None] =) -> requests.models.Response" ``` * Drive-by comment in `synapse.storage.types` * No untyped defs in `synapse_port_db` This was by far the most painful. I'm happy to break this up into smaller pieces for review if it's not managable as-is.
-
- Apr 08, 2022
-
-
David Robertson authored
-
Jorge Florian authored
Signed-off-by:
Jorge Florian <jafn28@gmail.com>
-
- Apr 05, 2022
-
-
Dirk Klimpel authored
-
- Apr 03, 2022
-
-
David Robertson authored
-
- Apr 01, 2022
-
-
Richard van der Hoff authored
In particular, add type hints for get_success and friends, which are then helpful in a bunch of places.
-
David Robertson authored
-
David Robertson authored
-
- Mar 31, 2022
-
-
Patrick Cloke authored
-
- Mar 29, 2022
-
-
David Robertson authored
-
- Mar 28, 2022
-
-
Dirk Klimpel authored
-
- Mar 21, 2022
-
-
Dirk Klimpel authored
-
- Mar 18, 2022
-
-
Dirk Klimpel authored
* inherit `MonthlyActiveUsersStore` from `RegistrationWorkerStore` Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
- Mar 17, 2022
-
-
Dirk Klimpel authored
-
- Mar 15, 2022
-
-
Dirk Klimpel authored
-
- Mar 11, 2022
-
-
Dirk Klimpel authored
Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
- Mar 08, 2022
-
-
Erik Johnston authored
-
- Mar 03, 2022
-
-
Dirk Klimpel authored
* Add type hints to `tests/rest` * newsfile * change import from `SigningKey`
-
- Mar 02, 2022
-
-
David Robertson authored
* Rename scripts-dev to have suffices * Update references to `scripts-dev` * Changelog * These scripts don't pass mypy
-
Dirk Klimpel authored
* Add type hints to `tests/rest/client` * newsfile * fix imports * add `test_account.py` * Remove one type hint in `test_report_event.py` * change `on_create_room` to `async` * update new functions in `test_third_party_rules.py` * Add `test_filter.py` * add `test_rooms.py` * change to `assertEquals` to `assertEqual` * lint
-
David Robertson authored
* Two scripts are basically entry_points already * Move and rename scripts/* to synapse/_scripts/*.py * Delete sync_room_to_group.pl * Expose entry points in setup.py * Update linter script and config * Fixup scripts & docs mentioning scripts that moved Co-authored-by:
Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
-
- Feb 28, 2022
-
-
Dirk Klimpel authored
* Add type hints to `tests/rest/client` * update `mypy.ini` * newsfile * add `test_register.py`
-
Dirk Klimpel authored
-
- Feb 21, 2022
-
-
Dirk Klimpel authored
-
- Feb 11, 2022
-
-
Patrick Cloke authored
-
- Feb 08, 2022
-
-
Patrick Cloke authored
-
- Jan 31, 2022
-
-
Dirk Klimpel authored
-
- Dec 30, 2021
-
-
Dirk Klimpel authored
-
- Dec 29, 2021
-
-
reivilibre authored
Fix a type annotation in `test_account_data.py` and remove it from the Mypy exclusion list. (#11657) Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
Dirk Klimpel authored
-
- Dec 21, 2021
-
-
Patrick Cloke authored
-
- Dec 20, 2021
-
-
Shay authored
-
- Dec 16, 2021
-
-
Dirk Klimpel authored
-
Dirk Klimpel authored
-
- Dec 15, 2021
-
-
Sean Quah authored
-
- Dec 14, 2021