Closed Kaptensanders closed 1 year ago
Hi, first of all, thanks for pypscript, it's just awsome.
When doing this:
a = None or "foo"
a is incorrectly assigned the value None
None
however, when used in a function decorated with @pyscript_compile, the expression yields the expected behavior a="foo"
@pyscript_compile
a="foo"
Pyscript: 1.3.3 Home Assistant Core installation: 2023.2.2 Python 3.10.9
Br Anders
Yikes - thanks for reporting. I've pushed fix f77d859 and test cases 48b6a8f.
Hi, first of all, thanks for pypscript, it's just awsome.
When doing this:
a is incorrectly assigned the value
None
however, when used in a function decorated with
@pyscript_compile
, the expression yields the expected behaviora="foo"
Pyscript: 1.3.3 Home Assistant Core installation: 2023.2.2 Python 3.10.9
Br Anders