Skip to content

Commit 9461d30

Browse files
authored
[ty] Rename type_api => ty_extensions (#19523)
1 parent 63d1d33 commit 9461d30

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

crates/ty_python_semantic/resources/mdtest/call/function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ len()
625625
len([], 1)
626626
```
627627

628-
### Type API predicates
628+
### Type property predicates
629629

630630
```py
631631
from ty_extensions import is_subtype_of
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ source: crates/ty_test/src/lib.rs
33
expression: snapshot
44
---
55
---
6-
mdtest name: type_api.md - Type API (`ty_extensions`) - Diagnostic snapshots
7-
mdtest path: crates/ty_python_semantic/resources/mdtest/type_api.md
6+
mdtest name: ty_extensions.md - `ty_extensions` - Diagnostic snapshots
7+
mdtest path: crates/ty_python_semantic/resources/mdtest/ty_extensions.md
88
---
99

1010
# Python source files

crates/ty_python_semantic/resources/mdtest/type_api.md renamed to crates/ty_python_semantic/resources/mdtest/ty_extensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Type API (`ty_extensions`)
1+
# `ty_extensions`
22

33
This document describes the internal `ty_extensions` API for creating and manipulating types as well
44
as testing various type system properties.

crates/ty_python_semantic/src/types/infer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10124,7 +10124,7 @@ impl<'db> TypeInferenceBuilder<'db, '_> {
1012410124
callable_type
1012510125
}
1012610126

10127-
// Type API special forms
10127+
// `ty_extensions` special forms
1012810128
SpecialFormType::Not => {
1012910129
let arguments = if let ast::Expr::Tuple(tuple) = arguments_slice {
1013010130
&*tuple.elts

0 commit comments

Comments
 (0)