[ty] Rename type_api => ty_extensions (#19523)

This commit is contained in:
David Peter 2025-07-24 10:24:26 +02:00 committed by GitHub
parent 63d1d332b3
commit 9461d3076f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View file

@ -625,7 +625,7 @@ len()
len([], 1) len([], 1)
``` ```
### Type API predicates ### Type property predicates
```py ```py
from ty_extensions import is_subtype_of from ty_extensions import is_subtype_of

View file

@ -3,8 +3,8 @@ source: crates/ty_test/src/lib.rs
expression: snapshot expression: snapshot
--- ---
--- ---
mdtest name: type_api.md - Type API (`ty_extensions`) - Diagnostic snapshots mdtest name: ty_extensions.md - `ty_extensions` - Diagnostic snapshots
mdtest path: crates/ty_python_semantic/resources/mdtest/type_api.md mdtest path: crates/ty_python_semantic/resources/mdtest/ty_extensions.md
--- ---
# Python source files # Python source files

View file

@ -1,4 +1,4 @@
# Type API (`ty_extensions`) # `ty_extensions`
This document describes the internal `ty_extensions` API for creating and manipulating types as well This document describes the internal `ty_extensions` API for creating and manipulating types as well
as testing various type system properties. as testing various type system properties.

View file

@ -10124,7 +10124,7 @@ impl<'db> TypeInferenceBuilder<'db, '_> {
callable_type callable_type
} }
// Type API special forms // `ty_extensions` special forms
SpecialFormType::Not => { SpecialFormType::Not => {
let arguments = if let ast::Expr::Tuple(tuple) = arguments_slice { let arguments = if let ast::Expr::Tuple(tuple) = arguments_slice {
&*tuple.elts &*tuple.elts