(
self,
obj: Any,
*,
title: Optional[TextType] = None,
help: bool = False,
methods: bool = False,
docs: bool = True,
private: bool = False,
dunder: bool = False,
sort: bool = True,
all: bool = True,
value: bool = True,
)
| 35 | """ |
| 36 | |
| 37 | def __init__( |
| 38 | self, |
| 39 | obj: Any, |
| 40 | *, |
| 41 | title: Optional[TextType] = None, |
| 42 | help: bool = False, |
| 43 | methods: bool = False, |
| 44 | docs: bool = True, |
| 45 | private: bool = False, |
| 46 | dunder: bool = False, |
| 47 | sort: bool = True, |
| 48 | all: bool = True, |
| 49 | value: bool = True, |
| 50 | ) -> None: |
| 51 | self.highlighter = ReprHighlighter() |
| 52 | self.obj = obj |
| 53 | self.title = title or self._make_title(obj) |
| 54 | if all: |
| 55 | methods = private = dunder = True |
| 56 | self.help = help |
| 57 | self.methods = methods |
| 58 | self.docs = docs or help |
| 59 | self.private = private or dunder |
| 60 | self.dunder = dunder |
| 61 | self.sort = sort |
| 62 | self.value = value |
| 63 | |
| 64 | def _make_title(self, obj: Any) -> Text: |
| 65 | """Make a default title.""" |
nothing calls this directly
no test coverage detected