fix: add passthrough init to abstract provider (#450)

Signed-off-by: gruebel <anton.gruebel@gmail.com>
This commit is contained in:
Anton Grübel 2025-02-18 14:45:12 +01:00 committed by GitHub
parent 11987280ba
commit 088409ea5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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[