0

I dont what I am missing but the following code:

from abc import ABCMeta, abstractproperty

class Abstra(object):
    __metaclass__ = ABCMeta

    def __init__(self):
        self.var = 77

    @abstractproperty
    def varb(self):
        '''
        returns var
        '''

gives the following epydoc error when generating the docs:

/test> epydoc -v abstra.py
+--------------------------------------------------------------------------
| File /test/abstra.py, in abstra.Abstra.varb
|   Warning: Possible mal-formatted field item.
|   Warning: Improper paragraph indentation.
|   

The warning disappears when I change the @abstractproperty decorator to a @property decorator. So my question is whether this a bug or I am missing something?

Parham
  • 3,157
  • 4
  • 31
  • 44
  • 1
    Is your indentation correct? The methods should have four spaces in front but they don't. Not sure if it's just an artifact of cutting and pasting into SO. – Binary Phile Jan 21 '13 at 03:41
  • @Binary Phile: indentation has been corrected, thanks for pointing that out. – Parham Jan 21 '13 at 03:43
  • so..after proper indentation.. what kind of error you are getting with `abstractproperty` that you are not getting after replacing that with `property`?? otherwise.. its problem with your indentation. – namit Jan 21 '13 at 04:26
  • @namit: No warnings at all – Parham Jan 21 '13 at 04:35

0 Answers0