Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /dislovelhl_enhanced-agent-bus /_compat /config /unified.py
| """Shim for src.core.shared.config.unified.""" | |
| from __future__ import annotations | |
| from typing import TYPE_CHECKING, Any | |
| if TYPE_CHECKING: | |
| from src.core.shared.config.unified import * # noqa: F403 | |
| else: | |
| try: | |
| from src.core.shared.config.unified import * # noqa: F403 | |
| except ImportError: | |
| class UnifiedSettings: | |
| """Minimal unified settings for standalone mode.""" | |
| debug: bool = False | |
| environment: str = "development" | |
| service_name: str = "enhanced-agent-bus" | |
| def __init__(self, **kwargs: Any) -> None: | |
| for k, v in kwargs.items(): | |
| setattr(self, k, v) | |
| def get(self, key: str, default: Any = None) -> Any: | |
| return getattr(self, key, default) | |
| _settings: UnifiedSettings | None = None | |
| def get_settings() -> UnifiedSettings: | |
| global _settings # noqa: PLW0603 | |
| if _settings is None: | |
| _settings = UnifiedSettings() | |
| return _settings | |
Xet Storage Details
- Size:
- 1.05 kB
- Xet hash:
- 58ce8bf4fba922a0b20bf59b455dbf8e3c28cc07a43a8eccfaef56c74f702884
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.