From f8424b77528e361c464ce89b4587ce125919c987 Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Fri, 13 Sep 2024 11:58:32 +0800 Subject: [PATCH] Add a warning to schedule docs See https://github.com/wpilibsuite/allwpilib/pull/7073/ --- commands2/commandscheduler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands2/commandscheduler.py b/commands2/commandscheduler.py index 7777b8c..11f5781 100644 --- a/commands2/commandscheduler.py +++ b/commands2/commandscheduler.py @@ -177,6 +177,8 @@ def schedule(self, *commands: Command) -> None: using those requirements have been scheduled as interruptible. If this is the case, they will be interrupted and the command will be scheduled. + WARNING: using this function directly is often a footgun and should be avoided. + :param commands: the commands to schedule. """ for command in commands: