Skip to content

Commit f9cee50

Browse files
committed
Formatting
1 parent 3e1dff2 commit f9cee50

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/source/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ API Reference
1616

1717
.. py:data:: Maybe
1818
:value: Value[T] | Error
19+
1920
A convenience alias to a union of both results. This allows type checkers to perform
2021
exhaustiveness checking when ``isinstance()`` is used with either class::
2122

tests/type_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def outcome_test() -> None:
7878
error: Error = Error(Exception())
7979

8080
outcome_good: Outcome[List[str]] = value
81-
outcome_mismatch: Outcome[bool] = value # type: ignore[assignment]
81+
outcome_mismatch: Outcome[bool] = value # type: ignore[assignment]
8282
outcome_err: Outcome[List[str]] = error
8383

8484
assert_type(outcome_good.unwrap(), List[str])

0 commit comments

Comments
 (0)