fix: resolve CI type annotation issues
- Add missing imports (Optional, Dict, List, TYPE_CHECKING) to affected modules - Add return type annotation -> None for __init__ methods - Add type annotations for ast dict and scenario variables - Create _colorize helper function to fix invalid fg parameter - Add type ignore comment for analyze_ambiguity return value
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
"""Interactive mode for the NL2Gherkin CLI."""
|
"""Interactive mode for the NL2Gherkin CLI."""
|
||||||
|
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
@@ -95,7 +95,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("\n[WARNING] Potential ambiguities:", "yellow"))
|
click.echo(_colorize("[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