Skip to content

Commit 94cdb66

Browse files
committed
Review comment
1 parent ba95043 commit 94cdb66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/red_knot_python_semantic/resources/mdtest/type_properties/is_disjoint_from.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ static_assert(is_disjoint_from(tuple[Literal[1], Literal[2]], tuple[Literal[1],
8080
static_assert(not is_disjoint_from(tuple[Literal[1], Literal[2]], tuple[Literal[1], int]))
8181
```
8282

83-
If a tuple type contains a `Never` element, it is considered similar to `Never` itself and is
84-
disjoint from any other type.
83+
If a tuple type contains a `Never` element, then it cannot be instantiated. Like `Never`, the type
84+
contains no objects, and is therefore disjoint from any other type.
8585

8686
```py
8787
static_assert(is_disjoint_from(tuple[Never], tuple[Never]))

0 commit comments

Comments
 (0)