Skip to content
Snippets Groups Projects
Commit ca1915e3 authored by Neda Moeini's avatar Neda Moeini
Browse files

Fix the ruff errors.

parent 10a65149
No related branches found
No related tags found
1 merge request!296Feature/nat 853 add summary view
Pipeline #89951 passed
This commit is part of merge request !296. Comments created here will be created in the context of that merge request.
"""Shared functions for the workflows."""
from collections.abc import Generator
from typing import TypeAlias, cast
from typing import cast
from orchestrator.domain.base import ProductBlockModel
from orchestrator.forms import FormPage
......@@ -11,12 +11,11 @@ from pydantic import ConfigDict
def summary_form(product_name: str, summary_data: dict) -> Generator:
"""Generate a summary form for the product."""
ProductSummary: TypeAlias = cast(type[MigrationSummary], migration_summary(summary_data)) # type: ignore[no-redef]
class SummaryForm(FormPage):
model_config = ConfigDict(title=f"{product_name} summary")
product_summary: ProductSummary
product_summary: cast(type[MigrationSummary], migration_summary(summary_data)) # type: ignore[valid-type]
yield SummaryForm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment