Skip to content

[BUG] Duplicate attributes fields when generating Python class docstrings #222

Description

@peytondmurray

Currently (as of d7f9461), neogen generates duplicate attributes for certain Python classes:

class Foo:
    def __init__(self, *args, **kwargs):
        self.app = None

    def bar(self, baz):
        self.app = baz

When I call require('neogen').generate(), I get:

class Foo:
    """

    Attributes
    ----------
    app : 
    app : 

    """
    def __init__(self, *args, **kwargs):
        self.app = None

    def bar(self, baz):
        self.app = baz

Here's my neovim version, in case it matters:

NVIM v0.12.0-dev-172+ged5e70465a
Build type: RelWithDebInfo
LuaJIT 2.1.1744317938

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions