Skip to content

Commit a269d75

Browse files
authored
Merge branch 'main' into add-telemetry-func
2 parents 5f2ea53 + 088409e commit a269d75

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,9 @@ class MyProvider(AbstractProvider):
411411

412412
Providers can also be extended to support async functionality.
413413
To support add asynchronous calls to a provider:
414-
* Implement the `AbstractProvider` as shown above.
415-
* Define asynchronous calls for each data type.
414+
415+
- Implement the `AbstractProvider` as shown above.
416+
- Define asynchronous calls for each data type.
416417

417418
```python
418419
class MyProvider(AbstractProvider):

openfeature/provider/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ async def resolve_object_details_async(
112112

113113

114114
class AbstractProvider(FeatureProvider):
115+
def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
116+
# this makes sure to invoke the parent of `FeatureProvider` -> `object`
117+
super(FeatureProvider, self).__init__(*args, **kwargs)
118+
115119
def attach(
116120
self,
117121
on_emit: typing.Callable[

spec

0 commit comments

Comments
 (0)