From 0340e23395f7a5de45738a2ef6426ebd8ab5612e Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Tue, 11 Mar 2025 21:20:31 -0700 Subject: [PATCH] [red-knot] remove redundant sentence in test (#16660) Removes a redundant sentence I accidentally left in the test suite from in #16540 (my mistake). --- .../resources/mdtest/function/return_type.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/red_knot_python_semantic/resources/mdtest/function/return_type.md b/crates/red_knot_python_semantic/resources/mdtest/function/return_type.md index c8d6f7dffc..d2764b9cd5 100644 --- a/crates/red_knot_python_semantic/resources/mdtest/function/return_type.md +++ b/crates/red_knot_python_semantic/resources/mdtest/function/return_type.md @@ -1,8 +1,7 @@ # Function return type 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 -return of `Never`, which is assignable to any annotated return type. +type of the returned value is assignable to the annotated return type. ## Basic examples