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

CI run against Twisted trunk is failing #13059

Closed
github-actions bot opened this issue Jun 15, 2022 · 1 comment · Fixed by #13061
Closed

CI run against Twisted trunk is failing #13059

github-actions bot opened this issue Jun 15, 2022 · 1 comment · Fixed by #13061
Assignees

Comments

@github-actions
Copy link
Contributor

See https://github.com/matrix-org/synapse/actions/runs/2500711697

@DMRobertson DMRobertson self-assigned this Jun 15, 2022
@DMRobertson
Copy link
Contributor

tests/state/test_v2.py:512: error: Argument 1 to "ensureDeferred" has incompatible type "Coroutine[Any, Any, Mapping[Tuple[str, str], str]]"; expected "Union[Coroutine[Deferred[Dict[Tuple[str, str], str]], Any, Dict[Tuple[str, str], str]], Generator[Deferred[Dict[Tuple[str, str], str]], Any, Dict[Tuple[str, str], str]], Deferred[Dict[Tuple[str, str], str]]]"  [arg-type]
tests/handlers/test_federation.py:122: error: Need type annotation for "sg"  [var-annotated]
tests/handlers/test_federation.py:123: error: Argument 1 to "successResultOf" of "_Assertions" has incompatible type "Coroutine[Any, Any, Optional[int]]"; expected "Deferred[<nothing>]"  [arg-type]
tests/handlers/test_federation.py:152: error: Need type annotation for "sg2"  [var-annotated]
tests/handlers/test_federation.py:152: error: Argument 1 to "successResultOf" of "_Assertions" has incompatible type "Coroutine[Any, Any, Optional[int]]"; expected "Deferred[<nothing>]"  [arg-type]
tests/handlers/test_federation.py:175: error: Need type annotation for "sg"  [var-annotated]
tests/handlers/test_federation.py:176: error: Argument 1 to "successResultOf" of "_Assertions" has incompatible type "Coroutine[Any, Any, Optional[int]]"; expected "Deferred[<nothing>]"  [arg-type]
tests/handlers/test_federation.py:206: error: Need type annotation for "sg2"  [var-annotated]
tests/handlers/test_federation.py:206: error: Argument 1 to "successResultOf" of "_Assertions" has incompatible type "Coroutine[Any, Any, Optional[int]]"; expected "Deferred[<nothing>]"  [arg-type]

Would guess Twisted changed type annotations recently. twisted/twisted#1736 Probably?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant