Updated the docstring for utils.delay since it can also accept a float as well as an int.
This commit is contained in:
parent
5d6d13bb12
commit
8d672a8e9d
1 changed files with 1 additions and 1 deletions
|
|
@ -720,7 +720,7 @@ def delay(delay=2, callback=None, retval=None):
|
||||||
Delay the return of a value.
|
Delay the return of a value.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
delay (int): The delay in seconds
|
delay (int or float): The delay in seconds
|
||||||
callback (callable, optional): Will be called without arguments
|
callback (callable, optional): Will be called without arguments
|
||||||
or with `retval` after delay seconds.
|
or with `retval` after delay seconds.
|
||||||
retval (any, optional): Whis will be returned by this function
|
retval (any, optional): Whis will be returned by this function
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue