summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-02-06 13:07:17 +0000
committerDavid Robertson <davidr@element.io>2023-02-06 13:07:17 +0000
commitd68b11c323e457924d653b1585f0ed3b7dada548 (patch)
treeea23cfef76532bebec7e93b18a15cef82ecbe2c1
parentMerge remote-tracking branch 'origin/develop' into mv/mypy-unused-awaitable (diff)
downloadsynapse-d68b11c323e457924d653b1585f0ed3b7dada548.tar.xz
Fix force_load_metadata return type
-rw-r--r--tests/handlers/test_oidc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/handlers/test_oidc.py b/tests/handlers/test_oidc.py
index adddbd002f..ef5311ce64 100644
--- a/tests/handlers/test_oidc.py
+++ b/tests/handlers/test_oidc.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 import os
-from typing import Any, Awaitable, ContextManager, Dict, Optional, Tuple
+from typing import Any, ContextManager, Dict, Optional, Tuple
 from unittest.mock import ANY, Mock, patch
 from urllib.parse import parse_qs, urlparse
 
@@ -287,7 +287,7 @@ class OidcHandlerTestCase(HomeserverTestCase):
         """Provider metadatas are extensively validated."""
         h = self.provider
 
-        def force_load_metadata() -> Awaitable[None]:
+        def force_load_metadata() -> "OpenIDProviderMetadata":
             async def force_load() -> "OpenIDProviderMetadata":
                 return await h.load_metadata(force=True)