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
In particular, x is inferred to be a x: StrResult[int] | Err[Exception].
The expression r1.and_then(baz) should not type check: pyright should report that a StrResult is not compatible with a int -> ExceptionResult because the Err types differ.
The text was updated successfully, but these errors were encountered:
The following type checks (pyright, all checks enabled):
In particular,
x
is inferred to be ax: StrResult[int] | Err[Exception]
.The expression
r1.and_then(baz)
should not type check: pyright should report that aStrResult
is not compatible with aint -> ExceptionResult
because the Err types differ.The text was updated successfully, but these errors were encountered: