--- a/eric6/Utilities/ClassBrowsers/idlclbr.py Thu Apr 08 17:27:12 2021 +0200 +++ b/eric6/Utilities/ClassBrowsers/idlclbr.py Thu Apr 08 18:27:47 2021 +0200 @@ -334,10 +334,7 @@ if classstack: # it's an interface/module method cur_class = classstack[-1][0] - if ( - isinstance(cur_class, Interface) or - isinstance(cur_class, Module) - ): + if isinstance(cur_class, (Interface, Module)): # it's a method f = Function(None, meth_name, file, lineno, meth_sig) @@ -420,7 +417,7 @@ if ( classstack[index][0] is not None and not isinstance(classstack[index][0], Function) and - not classstack[index][1] >= indent + classstack[index][1] < indent ): attributes = m.group("AttributeNames").split(',') ro = m.group("AttributeReadonly")