The Reloadium debugger seems to remove docstring information from functions when it ends with a return statement.
To Reproduce
Steps to reproduce the behavior (done on a fresh project):
Write a function or method with a docstring and that ends with a return statement
Try to programmatically get the docstring (with help(func) or func.__doc__ or inspect.getdoc(func))
Click Debug with Reloadium
The doc will be None
Example program:
def func():
"""Does something cool"""
return
assert func.__doc__ is not None
Expected behavior
The doc attribute on the function should have the function's docstring as usual. The example program should not throw an AssertionError, and behave as it does with normal debug/run.
Desktop or remote (please complete the following information):**
Describe the bug*
The Reloadium debugger seems to remove docstring information from functions when it ends with a return statement.
To Reproduce
Steps to reproduce the behavior (done on a fresh project):
help(func)
orfunc.__doc__
orinspect.getdoc(func)
)Example program:
Expected behavior
The doc attribute on the function should have the function's docstring as usual. The example program should not throw an AssertionError, and behave as it does with normal debug/run.
Desktop or remote (please complete the following information):**
Additional context
Both of these versions behave as expected: