Method: rich._inspect.Inspect._make_title
Calls: 16, Exceptions: 0, Paths: 2Back
Path 1: 8 calls (0.5)
1 (3) Foo (1) 'Hello' (1) {} (1) test_broken_call_attr.
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.
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