(self, *params)
| 39 | |
| 40 | @lru_cache(maxsize=128) |
| 41 | def get_with_nested_params(self, *params): |
| 42 | assert self._config is not None, "please load config first" |
| 43 | conf = self._config |
| 44 | for param in params: |
| 45 | if param in conf: |
| 46 | conf = conf[param] |
| 47 | else: |
| 48 | raise KeyError(f"{param} not found in config") |
| 49 | |
| 50 | return conf |
| 51 | |
| 52 | |
| 53 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected