From 4be2a98dfb07579482010f5bcdb0c533914c4bfb Mon Sep 17 00:00:00 2001 From: "Pedro S. Lopez" Date: Mon, 18 Dec 2023 13:32:07 -0400 Subject: [PATCH 1/2] demo: sources can now say moo --- airbyte-cdk/python/airbyte_cdk/sources/abstract_source.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airbyte-cdk/python/airbyte_cdk/sources/abstract_source.py b/airbyte-cdk/python/airbyte_cdk/sources/abstract_source.py index 0f8bf716cc10..09d95ff2d9bf 100644 --- a/airbyte-cdk/python/airbyte_cdk/sources/abstract_source.py +++ b/airbyte-cdk/python/airbyte_cdk/sources/abstract_source.py @@ -40,6 +40,10 @@ class AbstractSource(Source, ABC): in this class to create an Airbyte Specification compliant Source. """ + @abstractmethod + def say_moo(self): + pass + @abstractmethod def check_connection(self, logger: logging.Logger, config: Mapping[str, Any]) -> Tuple[bool, Optional[Any]]: """ From c8619aaf1938bcf7af4dde6f52c8f29802b1f814 Mon Sep 17 00:00:00 2001 From: "Pedro S. Lopez" Date: Mon, 18 Dec 2023 13:55:11 -0400 Subject: [PATCH 2/2] add times to moo method --- airbyte-cdk/python/airbyte_cdk/sources/abstract_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-cdk/python/airbyte_cdk/sources/abstract_source.py b/airbyte-cdk/python/airbyte_cdk/sources/abstract_source.py index 09d95ff2d9bf..9a93d356997d 100644 --- a/airbyte-cdk/python/airbyte_cdk/sources/abstract_source.py +++ b/airbyte-cdk/python/airbyte_cdk/sources/abstract_source.py @@ -41,7 +41,7 @@ class AbstractSource(Source, ABC): """ @abstractmethod - def say_moo(self): + def say_moo(self, times=0): pass @abstractmethod