diff options
author | David Robertson <davidr@element.io> | 2023-02-06 13:07:17 +0000 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2023-02-06 13:07:17 +0000 |
commit | d68b11c323e457924d653b1585f0ed3b7dada548 (patch) | |
tree | ea23cfef76532bebec7e93b18a15cef82ecbe2c1 | |
parent | Merge remote-tracking branch 'origin/develop' into mv/mypy-unused-awaitable (diff) | |
download | synapse-d68b11c323e457924d653b1585f0ed3b7dada548.tar.xz |
Fix force_load_metadata return type
-rw-r--r-- | tests/handlers/test_oidc.py | 4 |
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) |