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
2337
2337
2338
2338
.. function :: assert_never(arg, /)
2339
2339
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.
2341
2341
2342
2342
Example::
2343
2343
@@ -2358,7 +2358,7 @@ Functions and decorators
2358
2358
reachable, it will emit an error. For example, if the type annotation
2359
2359
for ``arg `` was instead ``int | str | float ``, the type checker would
2360
2360
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
2362
2362
the argument passed in must be the bottom type, :data: `Never `, and nothing
2363
2363
else.
2364
2364
You can’t perform that action at this time.
0 commit comments