Browse Source

fix alleged syntax error due to bare *; remove unused imports

Fabian Peter Hammerle 3 years ago
parent
commit
e3db2eb915
2 changed files with 2 additions and 5 deletions
  1. 2 3
      cc1101/__init__.py
  2. 0 2
      tests/test_receive.py

+ 2 - 3
cc1101/__init__.py

@@ -15,7 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
-import collections
 import contextlib
 import enum
 import logging
@@ -75,9 +74,9 @@ class _ReceivedPacket:  # unstable
 
     def __init__(
         self,
-        *,
+        # *,
         data: bytes,
-        rssi_index: int,
+        rssi_index: int,  # byte
         checksum_valid: bool,
         link_quality_indicator: int,  # 7bit
     ):

+ 0 - 2
tests/test_receive.py

@@ -2,8 +2,6 @@ import unittest.mock
 
 import pytest
 
-import cc1101
-
 # pylint: disable=protected-access