mirror of
https://github.com/sprockets/sprockets-statsd.git
synced 2024-11-14 19:29:30 +00:00
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:
parent
c634c20906
commit
05650286da
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue