We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baa3b4d commit c5087e6Copy full SHA for c5087e6
2 files changed
subprojects/pyntcore/devtools/gen-pubsub.py
@@ -43,8 +43,7 @@
43
sphinxify.process_raw("\n".join(docs)).lstrip().splitlines()
44
)
45
46
- print(
47
- f"""
+ print(f"""
48
// autogenerated by gen-pubsub.py
49
.def(py::init([](
50
{paramstr}
@@ -59,7 +58,4 @@
59
58
{doc}
60
)"
61
62
- """.removeprefix(
63
- "\n"
64
- ).rstrip()
65
- )
+ """.removeprefix("\n").rstrip())
subprojects/robotpy-wpilib/tests/test_alert.py
@@ -18,11 +18,7 @@ def group_name(request):
18
19
20
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
- ]
+ return [a.text for a in AlertSim.getAll() if a.level == level and a.isActive()]
26
27
28
def is_alert_active(text: str, level: Alert.Level):
0 commit comments