summary refs log tree commit diff
path: root/changelog.d
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-04-29 07:17:28 -0400
committerGitHub <noreply@github.com>2021-04-29 07:17:28 -0400
commitbb4b11846f3bdd539a1671eb8f1db8ee1a0bf57a (patch)
treed288f264e0b988905c11afac12c1db4c9919de30 /changelog.d
parentDelete room endpoint (#9889) (diff)
downloadsynapse-bb4b11846f3bdd539a1671eb8f1db8ee1a0bf57a.tar.xz
Add missing type hints to handlers and fix a Spam Checker type hint. (#9896)
The user_may_create_room_alias method on spam checkers
declared the room_alias parameter as a str when in reality it is
passed a RoomAlias object.
Diffstat (limited to 'changelog.d')
-rw-r--r--changelog.d/9896.bugfix1
-rw-r--r--changelog.d/9896.misc1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/9896.bugfix b/changelog.d/9896.bugfix
new file mode 100644
index 0000000000..07a8e87f9f
--- /dev/null
+++ b/changelog.d/9896.bugfix
@@ -0,0 +1 @@
+Correct the type hint for the `user_may_create_room_alias` method of spam checkers. It is provided a `RoomAlias`, not a `str`.
diff --git a/changelog.d/9896.misc b/changelog.d/9896.misc
new file mode 100644
index 0000000000..e41c7d1f02
--- /dev/null
+++ b/changelog.d/9896.misc
@@ -0,0 +1 @@
+Add type hints to the `synapse.handlers` module.