Skip to content

Commit 11f983a

Browse files
committed
Format code with black
1 parent f5df273 commit 11f983a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

can/interfaces/__init__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,17 @@
4242
# The second variant causes a deprecation warning on Python >= 3.10.
4343
if sys.version_info >= (3, 10):
4444
BACKENDS.update(
45-
{interface.name: (interface.module, interface.attr) for interface in entry_points(group="can.interface")}
45+
{
46+
interface.name: (interface.module, interface.attr)
47+
for interface in entry_points(group="can.interface")
48+
}
4649
)
4750
else:
4851
BACKENDS.update(
49-
{interface.name: tuple(interface.value.split(":")) for interface in entry_points().get("can.interface", [])}
52+
{
53+
interface.name: tuple(interface.value.split(":"))
54+
for interface in entry_points().get("can.interface", [])
55+
}
5056
)
5157
else:
5258
from pkg_resources import iter_entry_points

0 commit comments

Comments
 (0)