Skip to content

Commit a4c5a0b

Browse files
committed
fix flake and mypy
1 parent 9d84e3d commit a4c5a0b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scapy/contrib/isotp/isotp_soft_socket.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,9 @@ def select(sockets, remain=None):
207207
"""This function is called during sendrecv() routine to wait for
208208
sockets to be ready to receive
209209
"""
210-
obj_pipes = [x.impl.rx_queue for x in sockets if
211-
isinstance(x, ISOTPSoftSocket) and not x.closed]
210+
obj_pipes: List[Union[SuperSocket, ObjectPipe[Tuple[bytes, Union[float, EDecimal]]]]] = [ # noqa: E501
211+
x.impl.rx_queue for x in sockets if
212+
isinstance(x, ISOTPSoftSocket) and not x.closed]
212213
obj_pipes += [x for x in sockets if isinstance(x, ObjectPipe) and not x.closed]
213214

214215
ready_pipes = select_objects(obj_pipes, remain)

0 commit comments

Comments
 (0)