Skip to content

Commit c5087e6

Browse files
committed
Run black
1 parent baa3b4d commit c5087e6

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

subprojects/pyntcore/devtools/gen-pubsub.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
sphinxify.process_raw("\n".join(docs)).lstrip().splitlines()
4444
)
4545

46-
print(
47-
f"""
46+
print(f"""
4847
// autogenerated by gen-pubsub.py
4948
.def(py::init([](
5049
{paramstr}
@@ -59,7 +58,4 @@
5958
{doc}
6059
)"
6160
)
62-
""".removeprefix(
63-
"\n"
64-
).rstrip()
65-
)
61+
""".removeprefix("\n").rstrip())

subprojects/robotpy-wpilib/tests/test_alert.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ def group_name(request):
1818

1919

2020
def get_active_alerts(level: Alert.Level) -> T.List[str]:
21-
return [
22-
a.text
23-
for a in AlertSim.getAll()
24-
if a.level == level and a.isActive()
25-
]
21+
return [a.text for a in AlertSim.getAll() if a.level == level and a.isActive()]
2622

2723

2824
def is_alert_active(text: str, level: Alert.Level):

0 commit comments

Comments
 (0)