mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[copybara] Resync robotpy (#8585)
Project import generated by Copybara.
GitOrigin-RevId: fd000778e9b78c72cc7ca7b2ebe476129b78c6e0
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user