Skip to content
Snippets Groups Projects
Unverified Commit 2a2b1891 authored by reivilibre's avatar reivilibre Committed by GitHub
Browse files

Mark Module API error imports as re-exported and mark Synapse as containing...

Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054)
parent 8711e157
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ include demo/demo.tls.dh
include demo/*.py
include demo/*.sh
include synapse/py.typed
recursive-include synapse/storage *.sql
recursive-include synapse/storage *.sql.postgres
recursive-include synapse/storage *.sql.sqlite
......
Mark the Synapse package as containing type annotations and fix export declarations so that Synapse pluggable modules may be type checked against Synapse.
......@@ -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",
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment