summary refs log tree commit diff
path: root/mypy.ini
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-07-05 15:13:47 +0100
committerGitHub <noreply@github.com>2022-07-05 15:13:47 +0100
commit6ba732fefe732f92b0266b17cb6e45388bbe002a (patch)
treed0920597daec9d4d344f39cbd9e0bd23a812916f /mypy.ini
parentFactor out some common Complement CI setup commands to a script. (#13157) (diff)
downloadsynapse-6ba732fefe732f92b0266b17cb6e45388bbe002a.tar.xz
Type `tests.utils` (#13028)
* Cast to postgres types when handling postgres db

* Remove unused method

* Easy annotations

* Annotate create_room

* Use `ParamSpec` to annotate looping_call

* Annotate `default_config`

* Track `now` as a float

`time_ms` returns an int like the proper Synapse `Clock`

* Introduce a `Timer` dataclass

* Introduce a Looper type

* Suppress checking of a mock

* tests.utils is typed

* Changelog

* Whoops, import ParamSpec from typing_extensions

* ditch the psycopg2 casts
Diffstat (limited to 'mypy.ini')
-rw-r--r--mypy.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/mypy.ini b/mypy.ini
index d757a88fd1..ea0ab003a8 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -126,6 +126,9 @@ disallow_untyped_defs = True
 [mypy-tests.federation.transport.test_client]
 disallow_untyped_defs = True
 
+[mypy-tests.utils]
+disallow_untyped_defs = True
+
 
 ;; Dependencies without annotations
 ;; Before ignoring a module, check to see if type stubs are available.