From 4d1d0b7d19c2bae99e9c160435234f9cb7f3c035 Mon Sep 17 00:00:00 2001 From: Paul Daumlechner Date: Thu, 30 Nov 2023 22:43:07 +0000 Subject: [PATCH] Add type hints --- test/frame_leave_learn_state_cfm_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/frame_leave_learn_state_cfm_test.py b/test/frame_leave_learn_state_cfm_test.py index 61d89fc7..8a3b8ea9 100644 --- a/test/frame_leave_learn_state_cfm_test.py +++ b/test/frame_leave_learn_state_cfm_test.py @@ -12,17 +12,17 @@ class TestFrameLeaveLearnStateConfirmation(unittest.TestCase): EXAMPLE_FRAME = b"\x00\x04\x00\x0f\x00\x0b" - def test_bytes(self): + def test_bytes(self) -> None: """Test FrameLeaveLearnStateConfirmation.""" frame = FrameLeaveLearnStateConfirmation() self.assertEqual(bytes(frame), self.EXAMPLE_FRAME) - def test_frame_from_raw(self): + def test_frame_from_raw(self) -> None: """Test parse FrameLeaveLearnStateConfirmation from raw.""" frame = frame_from_raw(self.EXAMPLE_FRAME) self.assertTrue(isinstance(frame, FrameLeaveLearnStateConfirmation)) - def test_str(self): + def test_str(self) -> None: """Test string representation of FrameLeaveLearnStateConfirmation.""" frame = FrameLeaveLearnStateConfirmation() self.assertEqual(str(frame), '')