We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 565a75e commit cd9208fCopy full SHA for cd9208f
flagsmith/offline_handlers.py
@@ -1,4 +1,5 @@
1
import json
2
+from abc import ABC, abstractmethod
3
from pathlib import Path
4
from typing import Protocol
5
@@ -10,6 +11,12 @@ class OfflineHandler(Protocol):
10
11
def get_environment(self) -> EnvironmentModel: ...
12
13
14
+class BaseOfflineHandler(ABC):
15
+ @abstractmethod
16
+ def get_environment(self) -> EnvironmentModel:
17
+ raise NotImplementedError()
18
+
19
20
class LocalFileHandler:
21
"""
22
Handler to load evaluation context from a local JSON file containing the environment document.
0 commit comments