Set a value in the env. Args: key: Environment variable name value: Value to set (will be converted to string)
(self, key: str, value: Any)
| 354 | return self._values.get(key) |
| 355 | |
| 356 | def set(self, key: str, value: Any) -> None: |
| 357 | """ |
| 358 | Set a value in the env. |
| 359 | |
| 360 | Args: |
| 361 | key: Environment variable name |
| 362 | value: Value to set (will be converted to string) |
| 363 | """ |
| 364 | # Convert boolean to lowercase string |
| 365 | if isinstance(value, bool): |
| 366 | str_value = "true" if value else "false" |
| 367 | else: |
| 368 | str_value = str(value) |
| 369 | |
| 370 | self._values[key] = str_value |
| 371 | |
| 372 | def is_dirty(self) -> bool: |
| 373 | """Check if any values have been modified since last load/save.""" |
no outgoing calls