overriding an @ivar with a method in a subclass causes an exception during HTML formatting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
epydoc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Here's an example Python source file:
glyph@nhuvasarim:~$ cat a.py
class Superclass(object):
"""
A superclass.
@ivar value: a value that I provide.
"""
class Subclass(
"""
A subclass.
"""
def value(self):
"""
A method that I override L{Superclass.value} with.
"""
Running 'epydoc' over this file makes the problem rather obvious:
$ epydoc -vvvv --simple-term --debug a
.
.
.
[ 78%] a.Subclass-
Exception in template write_function_
Traceback (most recent call last):
File "/usr/bin/epydoc", line 13, in <module>
cli()
File "/var/lib/
main(options, names)
File "/var/lib/
write_
File "/var/lib/
html_
File "/var/lib/
self.
File "/var/lib/
write_
File "/var/lib/
self.
File "/var/lib/
self.
File "/var/lib/
div_class)
File "<string>", line 100, in write_function_
File "/var/lib/
assert isinstance(target, (APIDoc, DottedName))
AssertionError