diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-11-10 15:06:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-10 15:06:54 -0500 |
commit | 5cace20bf1f3c50ea50d56a938c4eee5825f4b84 (patch) | |
tree | eb926831cf00aabe5c43a32dfae9256d83e4fb07 /synapse/module_api | |
parent | Add type hints to synapse._scripts (#11297) (diff) | |
download | synapse-5cace20bf1f3c50ea50d56a938c4eee5825f4b84.tar.xz |
Add missing type hints to `synapse.app`. (#11287)
Diffstat (limited to 'synapse/module_api')
-rw-r--r-- | synapse/module_api/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py index 6e7f5238fe..ff79bc3c11 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py @@ -31,7 +31,7 @@ import attr import jinja2 from twisted.internet import defer -from twisted.web.resource import IResource +from twisted.web.resource import Resource from synapse.api.errors import SynapseError from synapse.events import EventBase @@ -196,7 +196,7 @@ class ModuleApi: """ return self._password_auth_provider.register_password_auth_provider_callbacks - def register_web_resource(self, path: str, resource: IResource): + def register_web_resource(self, path: str, resource: Resource): """Registers a web resource to be served at the given path. This function should be called during initialisation of the module. |