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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[fixed] Lambdas passed to methods on a Result (for example result.map(lambda v: ...)) no longer have unknown parameter types on the Ok/Err side that ignores them, which strict checkers reported
(pyright reportUnknownLambdaType, pyrefly implicit-any-lambda). Ignored op parameters are now typed Callable[[Never], object] | object, so the
lambda's parameter is Never on that side (it disappears when joined with
the real type) and Err("x").map(42) is still accepted