File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2337,7 +2337,7 @@ Functions and decorators
23372337
23382338.. function :: assert_never(arg, /)
23392339
2340- Assert to the type checker that a line of code is unreachable.
2340+ Ask a static type checker to confirm that a line of code is unreachable.
23412341
23422342 Example::
23432343
@@ -2358,7 +2358,7 @@ Functions and decorators
23582358 reachable, it will emit an error. For example, if the type annotation
23592359 for ``arg `` was instead ``int | str | float ``, the type checker would
23602360 emit an error pointing out that ``unreachable `` is of type :class: `float `.
2361- For a call to ``assert_never `` to succeed , the inferred type of
2361+ For a call to ``assert_never `` to pass type checking , the inferred type of
23622362 the argument passed in must be the bottom type, :data: `Never `, and nothing
23632363 else.
23642364
You can’t perform that action at this time.
0 commit comments