[ty] Use "cannot" consistently over "can not" (#21255)

This commit is contained in:
Alex Waygood
2025-11-03 10:38:20 -05:00
committed by GitHub
parent e8c35b9704
commit 39f105bc4a
24 changed files with 39 additions and 39 deletions

View File

@@ -390,7 +390,7 @@ static_assert(not is_single_valued(Literal["a"] | Literal["b"]))
We use `TypeOf` to get the inferred type of an expression. This is useful when we want to refer to
it in a type expression. For example, if we want to make sure that the class literal type `str` is a
subtype of `type[str]`, we can not use `is_subtype_of(str, type[str])`, as that would test if the
subtype of `type[str]`, we cannot use `is_subtype_of(str, type[str])`, as that would test if the
type `str` itself is a subtype of `type[str]`. Instead, we can use `TypeOf[str]` to get the type of
the expression `str`: