From a497ccfd175ff77f5f22d3070c85c6af9afd0881 Mon Sep 17 00:00:00 2001 From: Benedikt Moneke <67148916+bmoneke@users.noreply.github.com> Date: Thu, 13 Jul 2023 11:21:15 +0200 Subject: [PATCH] Test whether linting and mypy find errors. --- pyleco/core/message.py | 4 ++-- tests/core/test_message.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyleco/core/message.py b/pyleco/core/message.py index ecda04be..92aa7e33 100644 --- a/pyleco/core/message.py +++ b/pyleco/core/message.py @@ -44,13 +44,13 @@ class Message: - 0 or more `payload` frames If you do not specify a sender, the sending program shall add it itself. - The :attr:`data` attribute is the content of the first :attr:`payload` frame. It can be set with + The :attr:`data` attribute is the content of the first :attr:`payload` frame. It can be set with asfd asd the corresponding argument. All attributes, except the official frames, are for convenience. """ version: bytes = VERSION_B - receiver: bytes + receiver: str sender: bytes header: bytes payload: list[bytes] diff --git a/tests/core/test_message.py b/tests/core/test_message.py index 6b276b7c..6f159f7d 100644 --- a/tests/core/test_message.py +++ b/tests/core/test_message.py @@ -28,7 +28,7 @@ from pyleco.core.message import Message - +# asdf asdf asfd cid = b"conversation_id;" @@ -85,7 +85,7 @@ def test_message_data_str_to_binary_data(self): class Test_Message_from_frames: - def test_message_from_frames(self, message: Message): + def test_message_from_frames(self, message: str): message.version = b"diff" # also if the version is different assert Message.from_frames(*message.to_frames()) == message