Load a config from somewhere, return a :class:`Config` instance. Usually, this will cause self.config to be set and then returned. However, in most cases, :meth:`ConfigLoader.clear` should be called to erase any previous state.
(self)
| 512 | self.config = Config() |
| 513 | |
| 514 | def load_config(self) -> Config: |
| 515 | """Load a config from somewhere, return a :class:`Config` instance. |
| 516 | |
| 517 | Usually, this will cause self.config to be set and then returned. |
| 518 | However, in most cases, :meth:`ConfigLoader.clear` should be called |
| 519 | to erase any previous state. |
| 520 | """ |
| 521 | self.clear() |
| 522 | return self.config |
| 523 | |
| 524 | |
| 525 | class FileConfigLoader(ConfigLoader): |