fix: resolve CI type annotation issues
- Replaced deprecated typing.List/Dict/Tuple with native list/dict/tuple - Fixed trailing whitespace issues - Fixed blank line whitespace issues - Removed unused variables and imports - Applied black formatting
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
"""Interactive mode for the NL2Gherkin CLI."""
|
"""Interactive mode for the NL2Gherkin CLI."""
|
||||||
|
|
||||||
from typing import List
|
|
||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
||||||
from nl2gherkin.exporters.base import BaseExporter
|
from nl2gherkin.exporters.base import BaseExporter
|
||||||
@@ -21,8 +19,8 @@ def run_interactive_session(exporter: BaseExporter) -> None:
|
|||||||
parser = GherkinParser()
|
parser = GherkinParser()
|
||||||
generator = GherkinGenerator(parser)
|
generator = GherkinGenerator(parser)
|
||||||
|
|
||||||
history: List[dict] = []
|
history: list[dict] = []
|
||||||
generated_scenarios: List[str] = []
|
generated_scenarios: list[str] = []
|
||||||
|
|
||||||
click.echo("\n[NL2Gherkin Interactive Mode]")
|
click.echo("\n[NL2Gherkin Interactive Mode]")
|
||||||
click.echo("Enter your requirements (press Ctrl+C to exit)")
|
click.echo("Enter your requirements (press Ctrl+C to exit)")
|
||||||
@@ -95,7 +93,7 @@ def run_interactive_session(exporter: BaseExporter) -> None:
|
|||||||
|
|
||||||
ambiguities = analyzer.analyze_ambiguity(requirement)
|
ambiguities = analyzer.analyze_ambiguity(requirement)
|
||||||
if ambiguities:
|
if ambiguities:
|
||||||
click.echo(_colorize("[WARNING] Potential ambiguities:", "yellow"))
|
click.echo(_colorize("\n[WARNING] Potential ambiguities:", "yellow"))
|
||||||
for amb in ambiguities:
|
for amb in ambiguities:
|
||||||
click.echo(f" - {amb.message}")
|
click.echo(f" - {amb.message}")
|
||||||
if amb.suggestion:
|
if amb.suggestion:
|
||||||
|
|||||||
Reference in New Issue
Block a user