spadarian/docblock-python

Repeated attribute when using if statement in __init__ function

spadarian opened this issue · 0 comments

Example:

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

That would add the attribute twice.