spadarian / docblock-python

Atom plugin to insert documentation blocks for python functions
GNU General Public License v2.0
22 stars 9 forks source link

Repeated attribute when using if statement in __init__ function #16

Closed spadarian closed 6 years ago

spadarian commented 6 years ago

Example:

...
def __init__(self, a):
    if a > 0:
        self.positive = True
    else:
        self.positive = False

That would add the attribute twice.