Skip to content

Commit

Permalink
fix flake and mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
polybassa committed Jan 15, 2025
1 parent 9d84e3d commit a4c5a0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scapy/contrib/isotp/isotp_soft_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ def select(sockets, remain=None):
"""This function is called during sendrecv() routine to wait for
sockets to be ready to receive
"""
obj_pipes = [x.impl.rx_queue for x in sockets if
isinstance(x, ISOTPSoftSocket) and not x.closed]
obj_pipes: List[Union[SuperSocket, ObjectPipe[Tuple[bytes, Union[float, EDecimal]]]]] = [ # noqa: E501
x.impl.rx_queue for x in sockets if
isinstance(x, ISOTPSoftSocket) and not x.closed]
obj_pipes += [x for x in sockets if isinstance(x, ObjectPipe) and not x.closed]

ready_pipes = select_objects(obj_pipes, remain)
Expand Down

0 comments on commit a4c5a0b

Please sign in to comment.