Menu

#110 Use of decorators in code (@property specifically).

v3.0
open
Inspection (9)
5
2011-01-07
2011-01-07
Anonymous
No

This will currently fail. Neither @type, or @return will work here. Introspection and parsing deliver conflicting results, due to epydoc not recognizing the @property decorator. It would be nice if epydoc recognized this (tested with 3.0.1).

class A(object)
@property
def name(self):
"""The name of the me.

@type: C{string}
"""
return self.__class__.__name__

Discussion


Log in to post a comment.