Path 1: 162 calls (0.92)

ClassDef (162)

'Ancestor' (19) 'Specialization' (19) 'DoNothing' (18) 'DoNothing2' (18) 'PropertyPatterns' (18) 'Interface' (17) 'CustomException' (17) 'DoSomething'...

1def get_title(self, node: nodes.ClassDef) -> str:
2        """Get title for objects."""
3        title = node.name
4        if self.module_names:
5            title = f"{node.root().name}.{title}"
6        return title  # type: ignore[no-any-return]
            

Path 2: 15 calls (0.08)

ClassDef (15)

'data.clientmodule_test.Ancestor' (3) 'data.suppliermodule_test.DoNothing' (3) 'data.clientmodule_test.Specialization' (2) 'data.suppliermodule_test.D...

1def get_title(self, node: nodes.ClassDef) -> str:
2        """Get title for objects."""
3        title = node.name
4        if self.module_names:
5            title = f"{node.root().name}.{title}"
6        return title  # type: ignore[no-any-return]