Remove usage of typing.Protocol.

It wasn't adding too much and it isn't available in Python 3.7.
This commit is contained in:
Dave Shawley 2021-03-23 21:21:16 -04:00
parent c634c20906
commit 05650286da
No known key found for this signature in database
GPG key ID: 44A9C9992CCFAB82

View file

@ -4,14 +4,8 @@ import socket
import typing
class SupportsClose(typing.Protocol):
def close(self) -> None:
...
class StatsdServer(asyncio.DatagramProtocol, asyncio.Protocol):
metrics: typing.List[bytes]
server: typing.Union[SupportsClose, None]
def __init__(self, ip_protocol):
self.server = None