不足しているものはありませんが、次のコード:
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
ます。私の質問は、これがバグなのか、それとも何か不足しているのかということです。