Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple lines for attributes #67

Open
Hecatron opened this issue Oct 3, 2019 · 1 comment
Open

Multiple lines for attributes #67

Hecatron opened this issue Oct 3, 2019 · 1 comment

Comments

@Hecatron
Copy link

Hecatron commented Oct 3, 2019

Hi,
This might be related to #42
but do we know if there's a way to handle attributes with multiple lines?
such as the below

class TestClass(object):
    """Test Class.

    Attributes:
        value1: This is a test.
        value2: This is a 2nd test.
        value3: This is a multiple line attribute
            This is a second line
    """
@Hecatron
Copy link
Author

Hecatron commented Oct 3, 2019

Okay one way around this is to use

class TestClass(object):
    """Test Class.

    Attributes:
        value1: This is a test.
        value2: This is a 2nd test.
    """

    def __init__(self):
        self.value1 = 'some value'
        self.value2 = 'some value'

        ## @property value3
        # This is a multiple line attribute. <br>
        # This is a second line.
        self.value3 = 'some value'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant