Safe-DS / Stub-Generator

Automated generation of Safe-DS stubs for Python libraries.
https://stubgen.safeds.com
MIT License
3 stars 0 forks source link

Naming of results if there are multiple #138

Closed lars-reimann closed 5 months ago

lars-reimann commented 6 months ago

Describe the bug

If a function has multiple results, they are called result1, result2, etc. in the stubs despite the existence of names in the docstring.

Example (fit_and_transform):

/**
 * ...
 *
 * @result fittedTransformer The fitted transformer.
 * @result transformedTable The transformed table.
 */
@Pure
@PythonName("fit_and_transform")
fun fitAndTransform(
    table: Table,
    @PythonName("column_names") columnNames: List<String>? = null
) -> (result1: TableTransformer, result2: Table)

To Reproduce

Generate stubs for safe-ds.

Expected behavior

Results should be named as they are in the docstring.

Screenshots (optional)

No response

Additional Context (optional)

No response