Closed forrestbao closed 1 year ago
How to repeat:
Create a simple function decorated with Funix and save the code as test.py:
test.py
@funix.funix() def test() -> int: return #line break 1234
Then execute funix test at the terminal. Then run the function in the browser.
funix test
Finally, this is the screenshot where 1234 (the expected result) is not displayed but a null.
1234
null
The issue will be gone, if the last line is return 1234.
return 1234
My bad. I misunderstood the syntax of the return statement.
return
How to repeat:
Create a simple function decorated with Funix and save the code as
test.py
:Then execute
funix test
at the terminal. Then run the function in the browser.Finally, this is the screenshot where
1234
(the expected result) is not displayed but anull
.The issue will be gone, if the last line is
return 1234
.