mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 14:51:25 +00:00
[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 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue