Skip to content

Commit 2fe060c

Browse files
authored
Merge pull request #11 from ALERTua/task_sleep_float
task.sleep accepts int or float
2 parents 9259354 + 9c1ccf2 commit 2fe060c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/pyscript_autocomplete/pyscript_builtins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def executor(func: Callable, *args, **kwargs):
170170
...
171171

172172
@staticmethod
173-
def sleep(seconds: int):
173+
def sleep(seconds: Union[int, float]):
174174
"""
175175
https://hacs-pyscript.readthedocs.io/en/stable/reference.html#task-sleep
176176
"""

0 commit comments

Comments
 (0)