You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e48c105
Browse filesBrowse the repository at this point in the historyBrowse files
fix(zarr-metadata)!: guards narrow only when they say yes
`TypeIs[T]` promises True exactly for the values that are `T`, and type
checkers narrow `T` away when it returns False. Every `is_*` guard is
stricter than its type: `is_json(math.nan)` is False for a `float`, and
the document guards are False for well-typed documents that break a
structural rule. A consumer narrowing on the False branch type-checked
and then failed at run time. The guards are now `TypeGuard`s, which
narrow only on True.
BREAKING CHANGE: code that relied on a False result narrowing the type
now sees the type it passed in.
Assisted-by: ClaudeCode:claude-opus-5-5
0 commit comments