fix: annotate cli runtime tests with the real Cli class (52/60 mypy family)

Merged
MA
2mo ago
+36-24

cli wave-1 of the fleet lint queue (campaign flext-g31zw; unlock agreement gc-wisp-rrevy0). 52 of the 60 mypy census findings: tests referenced the u.Cli facade alias in type positions; the unannotated bind at utilities.py is a deliberate ruled shape (pyright alias resolution + pydantic ignored_types, per in-file note mro-wkii.17.17) and stays untouched. Annotations/type[] now use the canonical FlextCliUtilitiesCli; value uses keep the alias. Zero suppressions.

Evidence: ruff check+format 0; runtime probe green (tests import; real class exposes the #331 run_raw contract). Remaining 8 src findings (TRuleKind typevar, options unreachable x2, tables TypeAliasType, _convert overload-overlap, 2 singles) triaged for cli wave-2 on the slice bead. Merge per operator ruling: admin, no remote-CI wait.


Summary by cubic

Fixes mypy type annotations in the CLI runtime tests by replacing the u.Cli facade alias with the real FlextCliUtilitiesCli class in type positions.

  • Mypy treated the unannotated u.Cli bind as a variable, not a type; that bind is a deliberate ruled shape and stays untouched.
  • Value uses keep the facade alias, and no suppressions were added.