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,6 +1,4 @@
|
||||
"""Interactive mode for the NL2Gherkin CLI."""
|
||||
|
||||
from typing import List
|
||||
"""Interactive mode for the NL2Gherkin CLI."""
|
||||
|
||||
import click
|
||||
|
||||
@@ -21,8 +19,8 @@ def run_interactive_session(exporter: BaseExporter) -> None:
|
||||
parser = GherkinParser()
|
||||
generator = GherkinGenerator(parser)
|
||||
|
||||
history: List[dict] = []
|
||||
generated_scenarios: List[str] = []
|
||||
history: list[dict] = []
|
||||
generated_scenarios: list[str] = []
|
||||
|
||||
click.echo("\n[NL2Gherkin Interactive Mode]")
|
||||
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)
|
||||
if ambiguities:
|
||||
click.echo(_colorize("[WARNING] Potential ambiguities:", "yellow"))
|
||||
click.echo(_colorize("\n[WARNING] Potential ambiguities:", "yellow"))
|
||||
for amb in ambiguities:
|
||||
click.echo(f" - {amb.message}")
|
||||
if amb.suggestion:
|
||||
|
||||
Reference in New Issue
Block a user