summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-02-06 12:54:11 +0000
committerGitHub <noreply@github.com>2023-02-06 12:54:11 +0000
commitb275763c65dfa3c38432465c5bfba66a15c08040 (patch)
treed707d0cc69e2ed27529f0f89fd5ed57110266d41
parentType hints for tests.appservice (#14990) (diff)
downloadsynapse-b275763c65dfa3c38432465c5bfba66a15c08040.tar.xz
Expect type stubs from canonicaljson (#14992)
* 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
-rw-r--r--changelog.d/14992.misc1
-rw-r--r--mypy.ini3
2 files changed, 1 insertions, 3 deletions
diff --git a/changelog.d/14992.misc b/changelog.d/14992.misc
new file mode 100644
index 0000000000..93ceaeafc9
--- /dev/null
+++ b/changelog.d/14992.misc
@@ -0,0 +1 @@
+Improve type hints.
diff --git a/mypy.ini b/mypy.ini
index 351b8ccade..e66e8f1ffb 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -142,9 +142,6 @@ disallow_untyped_defs = True
 [mypy-authlib.*]
 ignore_missing_imports = True
 
-[mypy-canonicaljson]
-ignore_missing_imports = True
-
 [mypy-ijson.*]
 ignore_missing_imports = True