mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-19 22:07:05 +08:00
If the extracted lines define no name, the new function ended with a bare "return " and the call site became " = func(v1)". Both are invalid Python. Only add the final return line and the assignment when there is at least one variable to return. Otherwise call the function as a statement.