0

不足しているものはありませんが、次のコード:

from abc import ABCMeta, abstractproperty

class Abstra(object):
    __metaclass__ = ABCMeta

    def __init__(self):
        self.var = 77

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

ドキュメントの生成時に次のepydocエラーが発生します。

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

@abstractpropertyデコレータをデコレータに変更すると、警告が消え@propertyます。私の質問は、これがバグなのか、それとも何か不足しているのかということです。

4

0 に答える 0