Skip to content

Commit ae26217

Browse files
docs: add Missing Imports in Provider Dev Example in README (#286)
docs: add missing imports in provider dev example in README Signed-off-by: Zhiwei <[email protected]>
1 parent 5acd6a6 commit ae26217

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,12 @@ This can be a new repository or included in [the existing contrib repository](ht
235235
You’ll then need to write the provider by implementing the `AbstractProvider` class exported by the OpenFeature SDK.
236236

237237
```python
238-
from typing import List, Optional
238+
from typing import List, Optional, Union
239239

240240
from openfeature.evaluation_context import EvaluationContext
241241
from openfeature.flag_evaluation import FlagResolutionDetails
242+
from openfeature.hook import Hook
243+
from openfeature.provider.metadata import Metadata
242244
from openfeature.provider.provider import AbstractProvider
243245

244246
class MyProvider(AbstractProvider):

0 commit comments

Comments
 (0)