Appease linter

This commit is contained in:
Luke Murphy 2020-07-08 00:20:39 +02:00
parent 5e5ff4b89d
commit ca21c317da
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 2 additions and 16 deletions

View File

@ -1,3 +1,2 @@
"""simple-message-channels module."""
from simple_message_channels.smc import SimpleMessageChannel # noqa

View File

@ -1,11 +1,10 @@
"""Sans I/O wire protocol for Hypercore"""
__all__ = ["SimpleMessageChannel"]
from typing import List, Optional
import attr
import pyvarint
__all__ = ["SimpleMessageChannel"]
@attr.s(auto_attribs=True)
class SimpleMessageChannel:

View File

@ -3,15 +3,3 @@ async def test_send_produces_bytes(smc):
payload = await smc.send(channel, type, message)
assert isinstance(payload, bytes)
# async def test_recv_context_manager(smc):
# channel, type, message = 0, 0, b"abc"
# payload = await smc.send(channel, type, message)
# assert isinstance(payload, bytes)
# async with smc.recv(payload) as response:
# assert response.channel == channel
# assert response.type == type
# assert response.message == message