mirror of https://github.com/astral-sh/ruff
[red-knot] remove redundant sentence in test (#16660)
Removes a redundant sentence I accidentally left in the test suite from in #16540 (my mistake).
This commit is contained in:
parent
78b5f0b165
commit
0340e23395
|
|
@ -1,8 +1,7 @@
|
||||||
# Function return type
|
# Function return type
|
||||||
|
|
||||||
When a function's return type is annotated, all return statements are checked to ensure that the
|
When a function's return type is annotated, all return statements are checked to ensure that the
|
||||||
type of the returned value is assignable to the annotated return type. A `raise` is equivalent to a
|
type of the returned value is assignable to the annotated return type.
|
||||||
return of `Never`, which is assignable to any annotated return type.
|
|
||||||
|
|
||||||
## Basic examples
|
## Basic examples
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue