Skip to content

Python variables erratic documentation #11120

@TommyPec

Description

@TommyPec

Describe the bug
Sometimes the variables of a class are documented twice (one is bogus)

Screenshots
Screenshot 2024-09-07 at 11 03 12

The 2nd custom_value in the screenshot is generated by this python code:

    def do_set_property(self, pspec, value):
        """!
        Set Property
        @param self this object
        @param pspec property name
        @param value property value
        @return exception if unknown property
        """
        if pspec.name == "width":
            self.custom_width = value
            self._size_changed()

            # make sure we update the display
            self.changed(True)

        elif pspec.name == "height":
            self.custom_height = value
            self._size_changed()

            # make sure we update the display
            self.changed(True)

Funny thing: the "width" part doesn't cause issues.

If I activate the warnings, I also get warnings, e.g.,

/Users/pecos/Development/workspace/ns-3-dev/src/visualizer/visualizer/svgitem.py:119: warning: Member custom_width (variable) of class visualizer.svgitem.SvgItem is not documented.

To Reproduce
example.tgz

Expected behavior
Correct documentation and no warning :)

Version
doxygen --version
1.12.0

macOS, using homebrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions