(self, attr_name, value)
| 273 | self._set_attr(attr_name, value) |
| 274 | |
| 275 | def _set_attr(self, attr_name, value): |
| 276 | set_at_least_one = False |
| 277 | |
| 278 | for module in self.iterlist(): |
| 279 | if not hasattr(module, attr_name): |
| 280 | continue |
| 281 | |
| 282 | setattr(module, attr_name, value) |
| 283 | set_at_least_one = True |
| 284 | |
| 285 | if not set_at_least_one: |
| 286 | raise AttributeError(f"No module has attribute '{attr_name}'.") |
| 287 | |
| 288 | def dir_additions(self): |
| 289 | """ |