Skip to content

Commit

Permalink
Test whether linting and mypy find errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktBurger committed Jul 13, 2023
1 parent 2efd187 commit a497ccf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyleco/core/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 47 in pyleco/core/message.py

View workflow job for this annotation

GitHub Actions / Docs and Linting

Ruff (E501)

pyleco/core/message.py:47:101: E501 Line too long (109 > 100 characters)
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]
Expand Down
4 changes: 2 additions & 2 deletions tests/core/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

from pyleco.core.message import Message


# asdf asdf asfd

Check failure on line 31 in tests/core/test_message.py

View workflow job for this annotation

GitHub Actions / Docs and Linting

Ruff (E501)

tests/core/test_message.py:31:101: E501 Line too long (112 > 100 characters)
cid = b"conversation_id;"


Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a497ccf

Please sign in to comment.