Skip to content

Commit 81a986d

Browse files
committed
issue #10973 attribute is repeated twice in python
In case of Python the second occurrence had no type whilst the first occurrence has a type hint and this was not considered when adding variables..
1 parent 4a9be13 commit 81a986d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doxygen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2252,7 +2252,8 @@ static MemberDef *addVariableToClass(
22522252
MemberDefMutable *md = toMemberDefMutable(imd.get());
22532253
if (md &&
22542254
md->getClassDef()==cd &&
2255-
removeRedundantWhiteSpace(type)==md->typeString())
2255+
((lang==SrcLangExt::Python && type.isEmpty() && !md->typeString().isEmpty()) ||
2256+
removeRedundantWhiteSpace(type)==md->typeString()))
22562257
// member already in the scope
22572258
{
22582259

0 commit comments

Comments
 (0)