We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1dff2 commit f9cee50Copy full SHA for f9cee50
docs/source/api.rst
@@ -16,6 +16,7 @@ API Reference
16
17
.. py:data:: Maybe
18
:value: Value[T] | Error
19
+
20
A convenience alias to a union of both results. This allows type checkers to perform
21
exhaustiveness checking when ``isinstance()`` is used with either class::
22
tests/type_tests.py
@@ -78,7 +78,7 @@ def outcome_test() -> None:
78
error: Error = Error(Exception())
79
80
outcome_good: Outcome[List[str]] = value
81
- outcome_mismatch: Outcome[bool] = value # type: ignore[assignment]
+ outcome_mismatch: Outcome[bool] = value # type: ignore[assignment]
82
outcome_err: Outcome[List[str]] = error
83
84
assert_type(outcome_good.unwrap(), List[str])
0 commit comments