Get the value for a key-value style config. Args: key: The key of the config. default: The default value to return if the key is not found. Returns: The value for the key, or the default value if the key is not found.
(self, key: str, default: Any = None)
| 1103 | return classes |
| 1104 | |
| 1105 | def get_config(self, key: str, default: Any = None) -> Any: |
| 1106 | """Get the value for a key-value style config. |
| 1107 | |
| 1108 | Args: |
| 1109 | key: The key of the config. |
| 1110 | default: The default value to return if the key is not found. |
| 1111 | Returns: The value for the key, or the default value if the key is not found. |
| 1112 | """ |
| 1113 | return self._kv_configs.get(key, default) |
| 1114 | |
| 1115 | def set_config(self, key: str, value: Any) -> None: |
| 1116 | """Set the value for a key-value style config. |