summary refs log tree commit diff
path: root/synapse/module_api
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2021-10-13 08:42:41 +0100
committerGitHub <noreply@github.com>2021-10-13 08:42:41 +0100
commit2a2b189130c6ad040d00548d3dfc7030a9618a57 (patch)
tree394145a01981764cc97ee716ed43533ec939cb90 /synapse/module_api
parentAlways dump logs from trial during CI. (#11068) (diff)
downloadsynapse-2a2b189130c6ad040d00548d3dfc7030a9618a57.tar.xz
Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054)
Diffstat (limited to 'synapse/module_api')
-rw-r--r--synapse/module_api/errors.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/synapse/module_api/errors.py b/synapse/module_api/errors.py
index 98ea911a81..1db900e41f 100644
--- a/synapse/module_api/errors.py
+++ b/synapse/module_api/errors.py
@@ -14,9 +14,16 @@
 
 """Exception types which are exposed as part of the stable module API"""
 
-from synapse.api.errors import (  # noqa: F401
+from synapse.api.errors import (
     InvalidClientCredentialsError,
     RedirectException,
     SynapseError,
 )
-from synapse.config._base import ConfigError  # noqa: F401
+from synapse.config._base import ConfigError
+
+__all__ = [
+    "InvalidClientCredentialsError",
+    "RedirectException",
+    "SynapseError",
+    "ConfigError",
+]