diff --git a/python/restate/__init__.py b/python/restate/__init__.py index 765faf6..0e31bae 100644 --- a/python/restate/__init__.py +++ b/python/restate/__init__.py @@ -26,5 +26,9 @@ try: from .harness import test_harness except ImportError: - # was installed without the test harness optional dependency - pass + # we don't have the appropriate dependencies installed + + # pylint: disable=unused-argument, redefined-outer-name + def test_harness(app, follow_logs = False, restate_image = ""): # type: ignore + """a dummy harness constructor to raise ImportError""" + raise ImportError("Install restate-sdk[harness] to use this feature")