(
self,
locations: TypeMultiLine,
popup: Union[Popup, str, None] = None,
tooltip: Union[Tooltip, str, None] = None,
)
| 133 | """ |
| 134 | |
| 135 | def __init__( |
| 136 | self, |
| 137 | locations: TypeMultiLine, |
| 138 | popup: Union[Popup, str, None] = None, |
| 139 | tooltip: Union[Tooltip, str, None] = None, |
| 140 | ): |
| 141 | super().__init__() |
| 142 | self.locations = validate_multi_locations(locations) |
| 143 | if popup is not None: |
| 144 | self.add_child(popup if isinstance(popup, Popup) else Popup(str(popup))) |
| 145 | if tooltip is not None: |
| 146 | self.add_child( |
| 147 | tooltip if isinstance(tooltip, Tooltip) else Tooltip(str(tooltip)) |
| 148 | ) |
| 149 | |
| 150 | def _get_self_bounds(self) -> List[List[Optional[float]]]: |
| 151 | """Compute the bounds of the object itself.""" |
nothing calls this directly
no test coverage detected