A context manager to temporarily set artist properties. In contrast to `.Artist.set` and for performance, this skips the `normalize_kwargs` check.
(self, **kwargs)
| 1322 | |
| 1323 | @contextlib.contextmanager |
| 1324 | def _cm_set(self, **kwargs): |
| 1325 | """ |
| 1326 | A context manager to temporarily set artist properties. |
| 1327 | |
| 1328 | In contrast to `.Artist.set` and for performance, this skips the |
| 1329 | `normalize_kwargs` check. |
| 1330 | """ |
| 1331 | orig_vals = {k: getattr(self, f"get_{k}")() for k in kwargs} |
| 1332 | try: |
| 1333 | self._internal_update({k: kwargs[k] for k in orig_vals}) |
| 1334 | yield |
| 1335 | finally: |
| 1336 | self._internal_update(orig_vals) |
| 1337 | |
| 1338 | def findobj(self, match=None, include_self=True): |
| 1339 | """ |
no test coverage detected