Skip to content

Commit 7a76463

Browse files
committed
Format code with black
1 parent 179f4f1 commit 7a76463

4 files changed

Lines changed: 18 additions & 6 deletions

File tree

can/bus.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,5 +451,7 @@ class _SelfRemovingCyclicTask(CyclicSendTaskABC, ABC):
451451
Only needed for typing :meth:`Bus._periodic_tasks`. Do not instantiate.
452452
"""
453453

454-
def stop(self, remove_task: bool = True) -> None: # pylint: disable=arguments-differ
454+
def stop(
455+
self, remove_task: bool = True
456+
) -> None: # pylint: disable=arguments-differ
455457
raise NotImplementedError()

can/ctypesutil.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ def map_symbol(
6464
self.func_name._name = func_name # pylint: disable=protected-access
6565
log.debug(
6666
'Wrapped function "%s", result type: %s, error_check %s',
67-
func_name, type(restype), errcheck
67+
func_name,
68+
type(restype),
69+
errcheck,
6870
)
6971

7072
if errcheck is not None:

can/interface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ class Bus(BusABC): # pylint disable=abstract-method
6464
"""
6565

6666
@staticmethod
67-
def __new__(cls, channel=None, *args, **kwargs): # pylint: disable=keyword-arg-before-vararg
67+
def __new__(
68+
cls, channel=None, *args, **kwargs
69+
): # pylint: disable=keyword-arg-before-vararg
6870
"""
6971
Takes the same arguments as :class:`can.BusABC.__init__`.
7072
Some might have a special meaning, see below.

can/thread_safe_bus.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,15 @@ def __init__(self, *args, **kwargs):
6666
self._lock_send = RLock()
6767
self._lock_recv = RLock()
6868

69-
def recv(self, timeout=None, *args, **kwargs): # pylint: disable=keyword-arg-before-vararg
69+
def recv(
70+
self, timeout=None, *args, **kwargs
71+
): # pylint: disable=keyword-arg-before-vararg
7072
with self._lock_recv:
7173
return self.__wrapped__.recv(timeout=timeout, *args, **kwargs)
7274

73-
def send(self, msg, timeout=None, *args, **kwargs): # pylint: disable=keyword-arg-before-vararg
75+
def send(
76+
self, msg, timeout=None, *args, **kwargs
77+
): # pylint: disable=keyword-arg-before-vararg
7478
with self._lock_send:
7579
return self.__wrapped__.send(msg, timeout=timeout, *args, **kwargs)
7680

@@ -87,7 +91,9 @@ def filters(self, filters):
8791
with self._lock_recv:
8892
self.__wrapped__.filters = filters
8993

90-
def set_filters(self, filters=None, *args, **kwargs): # pylint: disable=keyword-arg-before-vararg
94+
def set_filters(
95+
self, filters=None, *args, **kwargs
96+
): # pylint: disable=keyword-arg-before-vararg
9197
with self._lock_recv:
9298
return self.__wrapped__.set_filters(filters=filters, *args, **kwargs)
9399

0 commit comments

Comments
 (0)