We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caefcc2 commit d0b3214Copy full SHA for d0b3214
py_trees/timers.py
@@ -54,7 +54,7 @@ class Timer(behaviour.Behaviour):
54
55
def __init__(self, name: str = "Timer", duration: float = 5.0):
56
super(Timer, self).__init__(name)
57
- if not isinstance(duration, float):
+ if not isinstance(duration, (int, float)):
58
raise TypeError(
59
"Timer: duration should be int or float, but you passed in {}".format(
60
type(duration)
0 commit comments