Add `method` to the target class as `name`, unless `name` is already defined there.
(self, name: str, method: Callable[..., Any])
| 356 | return "_add_%s" % self._prop_name |
| 357 | |
| 358 | def _add_to_class(self, name: str, method: Callable[..., Any]): |
| 359 | """Add `method` to the target class as `name`, unless `name` is already defined there.""" |
| 360 | if hasattr(self._element_cls, name): |
| 361 | return |
| 362 | setattr(self._element_cls, name, method) |
| 363 | |
| 364 | @property |
| 365 | def _creator(self) -> Callable[[BaseOxmlElement], BaseOxmlElement]: |
no outgoing calls
no test coverage detected