(self, attr)
| 364 | self.allowed_settings.update(allowed) |
| 365 | |
| 366 | def __getattr__(self, attr): |
| 367 | if self.allowed_settings: |
| 368 | assert attr in self.allowed_settings, f"internal error: attempt to read setting '{attr}' while in limited settings mode" |
| 369 | |
| 370 | if attr in self.attrs: |
| 371 | return self.attrs[attr] |
| 372 | else: |
| 373 | raise AttributeError(f"no such setting: '{attr}'") |
| 374 | |
| 375 | def __setattr__(self, name, value): |
| 376 | if self.allowed_settings: |
nothing calls this directly
no outgoing calls
no test coverage detected