mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-09 05:08:05 +00:00
[ty] Rename type_api => ty_extensions (#19523)
This commit is contained in:
parent
63d1d332b3
commit
9461d3076f
4 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
|
@ -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.
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue