Files
nushell/toolkit
Bahex fe968b54e1 fix: toolkit run pr runtime type checking issue (#18489)
## Description

A command annotated to return `int` was returning `string`.

This wasn't caught until recently, as the return value wasn't used in an
operation that wouldn't also accept `string`.
Enabling `enforce-runtime-annotations` (which has been made opt-out
recently) caused type checking to occur on the call site (`return`
itself is not type checked yet):
```nushell
let workflow_id = get-workflow-run $commits $number.span
# $workflow_id is inferred to be `int` due to `get-workflow-run`'s signature,
# so it's equivalent to:
let workflow_id: int = get-workflow-run $commits $number.span
```

## User-facing changes (Release notes)
N/A
2026-06-29 08:54:46 +03:00
..