From 088409ea5cdefef33f28fc4f45026fabac52377a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Gr=C3=BCbel?= Date: Tue, 18 Feb 2025 14:45:12 +0100 Subject: [PATCH] fix: add passthrough init to abstract provider (#450) Signed-off-by: gruebel --- openfeature/provider/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openfeature/provider/__init__.py b/openfeature/provider/__init__.py index 5b9ffd0..17300c0 100644 --- a/openfeature/provider/__init__.py +++ b/openfeature/provider/__init__.py @@ -112,6 +112,10 @@ class FeatureProvider(typing.Protocol): # pragma: no cover class AbstractProvider(FeatureProvider): + def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None: + # this makes sure to invoke the parent of `FeatureProvider` -> `object` + super(FeatureProvider, self).__init__(*args, **kwargs) + def attach( self, on_emit: typing.Callable[