Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fixup syntax for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Feb 5, 2023
1 parent d67dd8e commit 3bac2ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/http/federation/test_srv_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def do_lookup() -> Generator["Deferred[object]", object, List[Server]]:

with LoggingContext("one") as ctx:
resolve_d = resolver.resolve_service(service_name)
result: List[Server] = yield defer.ensureDeferred(resolve_d) # type: ignore[assignment]
result: List[Server]
result = yield defer.ensureDeferred(resolve_d) # type: ignore[assignment]

# should have restored our context
self.assertIs(current_context(), ctx)
Expand Down

0 comments on commit 3bac2ad

Please sign in to comment.