Return a human-readable description of this component. Defaults to class docstring, but subclass may override this (or simply set self._description) to be instance-dependent - for example, including the path from which the data was loaded. Returns: (string) A human-readable d
(self)
| 118 | self._description = description or self._description |
| 119 | |
| 120 | def description(self) -> str: |
| 121 | """Return a human-readable description of this component. |
| 122 | |
| 123 | Defaults to class docstring, but subclass may override this (or simply set |
| 124 | self._description) to be instance-dependent - for example, including the |
| 125 | path from which the data was loaded. |
| 126 | |
| 127 | Returns: |
| 128 | (string) A human-readable description for display in the UI. |
| 129 | """ |
| 130 | return self._description or inspect.getdoc(self) or '' # pytype: disable=bad-return-type |
| 131 | |
| 132 | @classmethod |
| 133 | def init_spec(cls) -> Optional[lit_types.Spec]: |