Skip to content

Commit

Permalink
docs: add Missing Imports in Provider Dev Example in README (#286)
Browse files Browse the repository at this point in the history
docs: add missing imports in provider dev example in README

Signed-off-by: Zhiwei <zhi.wei.liang@outlook.com>
  • Loading branch information
ChihweiLHBird authored Mar 3, 2024
1 parent 5acd6a6 commit ae26217
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,12 @@ This can be a new repository or included in [the existing contrib repository](ht
You’ll then need to write the provider by implementing the `AbstractProvider` class exported by the OpenFeature SDK.

```python
from typing import List, Optional
from typing import List, Optional, Union

from openfeature.evaluation_context import EvaluationContext
from openfeature.flag_evaluation import FlagResolutionDetails
from openfeature.hook import Hook
from openfeature.provider.metadata import Metadata
from openfeature.provider.provider import AbstractProvider

class MyProvider(AbstractProvider):
Expand Down

0 comments on commit ae26217

Please sign in to comment.