[copybara] Resync robotpy (#8585)

Project import generated by Copybara.
    
GitOrigin-RevId: fd000778e9b78c72cc7ca7b2ebe476129b78c6e0
This commit is contained in:
PJ Reiniger
2026-02-08 10:36:35 -05:00
committed by GitHub
parent 4aa21e947d
commit 227c89ab23
53 changed files with 1049 additions and 170 deletions

View File

@@ -63,15 +63,13 @@ class WaitUntilCommand(Command):
elif callable(args[0]):
return init_condition(args[0])
raise TypeError(
f"""
raise TypeError(f"""
TypeError: WaitUntilCommand(): incompatible function arguments. The following argument types are supported:
1. (self: WaitUntilCommand, condition: () -> bool)
2. (self: WaitUntilCommand, time: wpimath.units.seconds)
Invoked with: {format_args_kwargs(self, *args, **kwargs)}
"""
)
""")
def isFinished(self) -> bool:
return self._condition()