Skip to content

fix(ai): ty v0.0.92 flags a redundant cast in src/devops_cli/ai/tools/__init__.py, so uv check fails on main #2281

Description

@dan-petty

Problem Description

uv run devops ci fails the uv check step on a clean main. ty v0.0.92 reports a redundant-cast warning in src/devops_cli/ai/tools/__init__.py, and the step treats it as a failure. No change in the repository causes it: the file has not changed since release v0.2.39, and the ty version is not pinned.

Reproduction Steps

  1. Check out main.
  2. Run uv run devops ci, or only the uv check step.
  3. Read the output of the uv check step.

Expected vs Actual Behavior

  • Expected: uv check passes on main.
  • Actual: uv check fails with one diagnostic:
warning[redundant-cast]: Value is already of type `(...) -> Any`
   --> src/devops_cli/ai/tools/__init__.py:126:14
126 |         fn = cast(Callable[..., Any], self.function)
help: Remove the redundant `cast`
Found 1 diagnostic

Environment Diagnostics

  • Execution environment: devcontainer, Python 3.14.7.
  • ty v0.0.92, downloaded by the step at run time.
  • main at 7f1145a.

Notes

Remove the redundant cast at line 126 and its Callable and cast imports if nothing else uses them. Also check whether the ty version of this step should be pinned, so a new ty release cannot fail main without a change in the repository.

Activity

  1. added
    source/agent
    type/bug
    on Oct 26, 2026
  2. dan-petty commented on Oct 26, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/bug. The candidate fixes a problem with a tool that reports warnings as errors, which is a bug fix.
    • Priority: P2-Medium. The issue causes CI to fail but does not block development or introduce security risks.
    • Value: Low. The change fixes a minor issue in one file that does not affect end users.
    • Effort: Low. The fix requires removing one line and two imports, which is simple.
  3. added a commit that references this issue on Oct 26, 2026
    3936fe6
  4. added a commit that references this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions