Skip to content

Commit fd43fb9

Browse files
committed
undo file reformat
1 parent a4cdd76 commit fd43fb9

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

can/bus.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ class BusABC(metaclass=ABCMeta):
4646

4747
@abstractmethod
4848
def __init__(
49-
self,
50-
channel: Any,
51-
can_filters: Optional[can.typechecking.CanFilters] = None,
52-
**kwargs: object
49+
self,
50+
channel: Any,
51+
can_filters: Optional[can.typechecking.CanFilters] = None,
52+
**kwargs: object
5353
):
5454
"""Construct and open a CAN bus instance of the specified type.
5555
@@ -114,7 +114,7 @@ def recv(self, timeout: Optional[float] = None) -> Optional[Message]:
114114
return None
115115

116116
def _recv_internal(
117-
self, timeout: Optional[float]
117+
self, timeout: Optional[float]
118118
) -> Tuple[Optional[Message], bool]:
119119
"""
120120
Read a message from the bus and tell whether it was filtered.
@@ -176,11 +176,11 @@ def send(self, msg: Message, timeout: Optional[float] = None) -> None:
176176
raise NotImplementedError("Trying to write to a readonly bus?")
177177

178178
def send_periodic(
179-
self,
180-
msgs: Union[Message, Sequence[Message]],
181-
period: float,
182-
duration: Optional[float] = None,
183-
store_task: bool = True,
179+
self,
180+
msgs: Union[Message, Sequence[Message]],
181+
period: float,
182+
duration: Optional[float] = None,
183+
store_task: bool = True,
184184
) -> can.broadcastmanager.CyclicSendTaskABC:
185185
"""Start sending messages at a given period on this bus.
186186
@@ -256,10 +256,10 @@ def wrapped_stop_method(remove_task: bool = True) -> None:
256256
return task
257257

258258
def _send_periodic_internal(
259-
self,
260-
msgs: Union[Sequence[Message], Message],
261-
period: float,
262-
duration: Optional[float] = None,
259+
self,
260+
msgs: Union[Sequence[Message], Message],
261+
period: float,
262+
duration: Optional[float] = None,
263263
) -> can.broadcastmanager.CyclicSendTaskABC:
264264
"""Default implementation of periodic message sending using threading.
265265
@@ -332,7 +332,7 @@ def filters(self, filters: Optional[can.typechecking.CanFilters]) -> None:
332332
self.set_filters(filters)
333333

334334
def set_filters(
335-
self, filters: Optional[can.typechecking.CanFilters] = None
335+
self, filters: Optional[can.typechecking.CanFilters] = None
336336
) -> None:
337337
"""Apply filtering to all messages received by this Bus.
338338
@@ -495,6 +495,6 @@ class _SelfRemovingCyclicTask(CyclicSendTaskABC, ABC):
495495
"""
496496

497497
def stop( # pylint: disable=arguments-differ
498-
self, remove_task: bool = True
498+
self, remove_task: bool = True
499499
) -> None:
500500
raise NotImplementedError()

0 commit comments

Comments
 (0)