From c7b325193f3f403467d37408fcfd78abc2b535ae Mon Sep 17 00:00:00 2001 From: Ivan Yordanov Date: Wed, 27 Sep 2023 00:07:36 +0300 Subject: [PATCH] chore(ruff-comprehensions): ignore "C408" on certain lines due to conflict with pyright --- kpops/utils/gen_schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kpops/utils/gen_schema.py b/kpops/utils/gen_schema.py index 51c64ce2c..cbcf4beaa 100644 --- a/kpops/utils/gen_schema.py +++ b/kpops/utils/gen_schema.py @@ -69,7 +69,7 @@ def _add_components( :return: Extended tuple """ if components is None: - components = tuple() + components = tuple() # noqa: C408 # Set of existing types, against which to check the new ones defined_component_types = {component.type for component in components} custom_components = ( @@ -95,7 +95,7 @@ def gen_pipeline_schema( log.warning("No components are provided, no schema is generated.") return # Add stock components if enabled - components: tuple[type[PipelineComponent]] = tuple() + components: tuple[type[PipelineComponent]] = tuple() # noqa: C408 if include_stock_components: components = _add_components("kpops.components") # Add custom components if provided