Skip to content

Commit 6c3ee0c

Browse files
authored
Merge pull request #14 from ALERTua/pr_number_step_selector_precaution
number step selector precaution
2 parents 9d07367 + aa2794e commit 6c3ee0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/pyscript_autocomplete/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def create_service(self, domain_id, service_id, service):
8282
if selector_id == "number":
8383
# TODO add min, max... to docstring
8484
is_float = False
85-
if "step" in selector:
85+
if selector and "step" in selector:
8686
is_float = isinstance(selector["step"], float) or selector["step"] == "any"
8787

8888
arg_annotation = ast.Name(id="float" if is_float else "int")

0 commit comments

Comments
 (0)