Skip to content

Commit

Permalink
chore(ruff-comprehensions): ignore "C408"
Browse files Browse the repository at this point in the history
on certain lines due to conflict with pyright
  • Loading branch information
sujuka99 committed Sep 26, 2023
1 parent 301284e commit c7b3251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kpops/utils/gen_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand All @@ -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
Expand Down

0 comments on commit c7b3251

Please sign in to comment.