Skip to content

Commit 9c1ccf2

Browse files
committed
task.sleep accepts int or float
1 parent 9259354 commit 9c1ccf2

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)