Path 1: 8 calls (0.5)

1 (3) Foo (1) 'Hello' (1) {} (1) test_broken_call_attr..Foo (1) test_inspect_swig_edge_case..Thing (1)

Text (8)

1def _make_title(self, obj: Any) -> Text:
2        """Make a default title."""
3        title_str = (
4            str(obj)
5            if (isclass(obj) or callable(obj) or ismodule(obj))
6            else str(type(obj))
7        )
8        title_text = self.highlighter(title_str)
9        return title_text
            

Path 2: 8 calls (0.5)

test_can_handle_special_characters_in_docstrings..Something def (5) builtin_function_or_method (1) test_inspect_coroutine..coroutine d...

Text (8)

1def _make_title(self, obj: Any) -> Text:
2        """Make a default title."""
3        title_str = (
4            str(obj)
5            if (isclass(obj) or callable(obj) or ismodule(obj))
6            else str(type(obj))
7        )
8        title_text = self.highlighter(title_str)
9        return title_text