Skip to content

attribute is repeated twice in python #10973

@zhangzq

Description

@zhangzq

Describe the bug
The python code below:

class Test:
    def __init__(self):
        ## var a
        self.a: int = 1

        print(self.a)

will output two attributes with same name 'a'.

Screenshots

image

To Reproduce

The above small snipets with default doxyfile.

Expected behavior

There should only one 'a'.

Version

1.12.0 (4a9be13*)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions