Skip to content

__init__ arguments are being replaced by *args, **kwargs #191

@polakowo

Description

@polakowo

The following code

import plotly.graph_objects as go

class FigureWidget(go.FigureWidget):
    def __init__(self):
        """Documentation."""
        pass

Produces the following documentation

Screen Shot 2020-04-28 at 19 14 43

Although I clearly defined that the __init__ method should have no arguments, it shows *args and **kwargs in the signature. Are there any caveats in subclassing third-party classes? Also any ideas how to unveil the "real" signature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamIssue affects a dependency of ours

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions