Skip to content

Commit cd9208f

Browse files
committed
bring back ABC
1 parent 565a75e commit cd9208f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flagsmith/offline_handlers.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
from abc import ABC, abstractmethod
23
from pathlib import Path
34
from typing import Protocol
45

@@ -10,6 +11,12 @@ class OfflineHandler(Protocol):
1011
def get_environment(self) -> EnvironmentModel: ...
1112

1213

14+
class BaseOfflineHandler(ABC):
15+
@abstractmethod
16+
def get_environment(self) -> EnvironmentModel:
17+
raise NotImplementedError()
18+
19+
1320
class LocalFileHandler:
1421
"""
1522
Handler to load evaluation context from a local JSON file containing the environment document.

0 commit comments

Comments
 (0)