Skip to content

Commit 525924f

Browse files
committed
Merge doc literal paragraph
1 parent fecd37d commit 525924f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

docs/source/literal_types.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ If we forget to handle one of the cases, mypy will generate an error:
468468
assert_never(direction) # E: Argument 1 to "assert_never" has incompatible type "Direction"; expected "NoReturn"
469469
470470
Exhaustiveness checking is also supported for match statements (Python 3.10 and later).
471-
472471
For match statements specifically, inexhaustive matches can be caught
473472
without needing to use ``assert_never`` by using
474473
:option:`--enable-error-code exhaustive-match <mypy --enable-error-code>`.

0 commit comments

Comments
 (0)