Skip to content

Commit d7acfbf

Browse files
committed
that was hopefully the last
1 parent b2d34b6 commit d7acfbf

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/tmtccmd/com/dummy.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
external hardware or an extra socket
33
"""
44

5-
from typing import List, Optional
5+
from __future__ import annotations
6+
7+
from typing import Optional
68

79
from deprecated.sphinx import deprecated
810
from spacepackets.ccsds.time import CdsShortTimestamp
@@ -133,7 +135,7 @@ def data_available(self, timeout: float = 0, parameters: any = 0):
133135
return True
134136
return False
135137

136-
def receive(self, parameters: any = 0) -> List[bytes]:
138+
def receive(self, parameters: any = 0) -> list[bytes]:
137139
return self.dummy_handler.receive_reply_package()
138140

139141
def send(self, data: bytes | bytearray):

src/tmtccmd/com/tcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import threading
1111
import select
1212
from collections import deque
13-
from typing import Any, List, Optional, Sequence
13+
from typing import Any, Optional, Sequence
1414

1515
from spacepackets.ccsds.spacepacket import parse_space_packets, PacketId
1616

@@ -128,7 +128,7 @@ def close(self, args: any = None) -> None:
128128
def send(self, data: bytes | bytearray):
129129
self.__tc_queue.put(data)
130130

131-
def receive(self, poll_timeout: float = 0) -> List[bytes]:
131+
def receive(self, poll_timeout: float = 0) -> list[bytes]:
132132
self.__tm_queue_to_packet_list()
133133
tm_packet_list = self.tm_packet_list
134134
self.tm_packet_list = []

0 commit comments

Comments
 (0)