Buckets:

download
raw
842 Bytes
"""Shim for src.core.shared.feature_flags."""
from __future__ import annotations
from typing import Any
try:
from src.core.shared.feature_flags import * # noqa: F403
except ImportError:
FEATURES: dict[str, bool] = {}
def is_enabled(flag: str, default: bool = False) -> bool:
return FEATURES.get(flag, default)
def set_flag(flag: str, value: bool) -> None:
FEATURES[flag] = value
def get_all_flags() -> dict[str, bool]:
return dict(FEATURES)
class FeatureFlagService:
def __init__(self, **kwargs: Any) -> None:
self._flags: dict[str, bool] = {}
def is_enabled(self, flag: str, default: bool = False) -> bool:
return self._flags.get(flag, default)
def set_flag(self, flag: str, value: bool) -> None:
self._flags[flag] = value

Xet Storage Details

Size:
842 Bytes
·
Xet hash:
acdd4d41054cc83c055d7b34e2a40ffcfdda31b379f3efbdce530120fff06ff1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.