Skip to content

Tuple in return type signature showing as "uple", because of lstrip. #19

@mashrurmorshed

Description

@mashrurmorshed

Describe the bug:

When the return type is tuple, it is being rendered as "uple" instead.

Expected behaviour:
I expect it to show tuple.

Steps to reproduce the issue:

def foo(x : int = 1, y: int = 2, z: tuple = (0.001, 2)) -> tuple:
    """Some function.

    Args:
        x (int, optional): An integer. Defaults to 1.
        y (int, optional): An integer. Defaults to 2.
        z (tuple, optional): Tuple. Defaults to (0.001, 2).

    Returns:
        tuple: (x, y).
    """     
    return (x, y)

Lazydoc renders this as:

image

Note the "uple".

Technical details:

  • Host Machine OS (Windows/Linux/Mac): Linux
  • Browser (Chrome/Firefox/Safari): Firefox

Possible Fix:
Again, seems to be a cosmetic issue like #18

Additional context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions