diff options
author | David Robertson <davidr@element.io> | 2023-03-23 15:04:21 +0000 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2023-03-23 15:04:21 +0000 |
commit | baca8eb43eda0cdcf9ba4c3597c9fdd7d668a37f (patch) | |
tree | 0eddb75981a65d8a229db8ffa5fcddf7beaf054f | |
parent | wip 8 (diff) | |
download | synapse-baca8eb43eda0cdcf9ba4c3597c9fdd7d668a37f.tar.xz |
wip 9
-rw-r--r-- | tests/http/federation/dmr_reproduce_mypy_zope_pain.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/http/federation/dmr_reproduce_mypy_zope_pain.py b/tests/http/federation/dmr_reproduce_mypy_zope_pain.py index b403f547bf..5e9ac7ba61 100644 --- a/tests/http/federation/dmr_reproduce_mypy_zope_pain.py +++ b/tests/http/federation/dmr_reproduce_mypy_zope_pain.py @@ -3,18 +3,6 @@ from typing import Optional from zope.interface import Interface, implementer -class IAddress(Interface): - pass - - -@implementer(IAddress) -class DummyAddress: - pass - - -dummy_address = DummyAddress() - - class IProtocol(Interface): pass @@ -29,13 +17,13 @@ class _WrappingProtocol(Protocol): class IProtocolFactory(Interface): - def buildProtocol(addr: IAddress) -> Optional[IProtocol]: + def buildProtocol() -> Optional[IProtocol]: pass def _make_connection( client_factory: IProtocolFactory, ) -> None: - client_protocol = client_factory.buildProtocol(dummy_address) + client_protocol = client_factory.buildProtocol() assert isinstance(client_protocol, _WrappingProtocol) print("Hello") |