From baca8eb43eda0cdcf9ba4c3597c9fdd7d668a37f Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 23 Mar 2023 15:04:21 +0000 Subject: wip 9 --- tests/http/federation/dmr_reproduce_mypy_zope_pain.py | 16 ++-------------- 1 file 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") -- cgit 1.4.1