diff --git a/projects/vdk-plugins/README.md b/projects/vdk-plugins/README.md index 13c3f21fa6..8fe242dd62 100644 --- a/projects/vdk-plugins/README.md +++ b/projects/vdk-plugins/README.md @@ -42,7 +42,7 @@ from vdk.api.plugin.hook_markers import hookimpl # name of function must match name of hookspec function @hookimpl(tryfirst=True) -def vdk_configure(config_builder: "ConfigurationBuilder") -> None: +def vdk_configure(config_builder: ConfigurationBuilder) -> None: """ Here we define what configuration settings are needed with reasonable defaults. Other plugins will populate them. For example, there could be a plugin that reads env variables or parses config files. @@ -56,7 +56,7 @@ def vdk_configure(config_builder: "ConfigurationBuilder") -> None: # And here we can create another hook implementation # let's use our configuration to print bar if it is set to foo everytime a job runs @hookimpl -def run_job(self, context: "JobContext"): +def run_job(self, context: JobContext): value = context.configuration.get_required_option('my_config') if value == "foo": print("bar")