Skip to content

Commit 04532ed

Browse files
committed
some fixes for older python versions
1 parent 12ba6bc commit 04532ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tmtccmd/com/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"""Communication module. Provides generic abstraction for communication and commonly used
33
concrete implementations."""
44

5-
from abc import abstractmethod, ABC
6-
from typing import Any, List, Optional
5+
from __future__ import annotations
76

8-
from tmtccmd.tmtc.common import TelemetryListT
7+
from abc import abstractmethod, ABC
8+
from typing import Any, Optional
99

1010

1111
class ReceptionDecodeError(Exception):
@@ -68,7 +68,7 @@ def send(self, data: bytes | bytearray):
6868
"""
6969

7070
@abstractmethod
71-
def receive(self, parameters: Any = 0) -> List[bytes]:
71+
def receive(self, parameters: Any = 0) -> list[bytes]:
7272
"""Returns a list of received packets. The child class can use a separate thread to poll for
7373
the packets or use some other mechanism and container like a deque to store packets
7474
to be returned here.

0 commit comments

Comments
 (0)