feat(py) None return type does not display returns (#51)

This commit is contained in:
danymat
2022-01-29 19:56:14 +01:00
parent 9b7d6e5e81
commit 0d381d03d2

View File

@@ -101,6 +101,9 @@ return {
if res["return_type"] then if res["return_type"] then
res["return_statement"] = nil res["return_statement"] = nil
res["anonymous_return"] = nil res["anonymous_return"] = nil
if res["return_type"][1] == "None" then
res["return_type"] = nil
end
end end
-- Remove reference to "self" if any -- Remove reference to "self" if any