mirror of https://github.com/astral-sh/ruff
fix docs
This commit is contained in:
parent
a4f5b3522d
commit
6b429409c5
|
|
@ -32,13 +32,12 @@ use ruff_python_ast::{self as ast, name::Name};
|
||||||
|
|
||||||
/// Infer the type of a parameter or return annotation in a function signature.
|
/// Infer the type of a parameter or return annotation in a function signature.
|
||||||
///
|
///
|
||||||
/// This is very similar to
|
/// This is very similar to [`definition_expression_type`], but knows that `TypeInferenceBuilder`
|
||||||
/// [`definition_expression_type`][crate::types::definition_expression_type], but knows that
|
/// will always infer the parameters and return of a function in its PEP-695 typevar scope, if
|
||||||
/// `TypeInferenceBuilder` will always infer the parameters and return of a function in its PEP-695
|
/// there is one; otherwise they will be inferred in the function definition scope, but will always
|
||||||
/// typevar scope, if there is one; otherwise they will be inferred in the function definition
|
/// be deferred. (This prevents spurious salsa cycles when we need the signature of the function
|
||||||
/// scope, but will always be deferred. (This prevents spurious salsa cycles when we need the
|
/// while in the middle of inferring its definition scope — for instance, when applying
|
||||||
/// signature of the function while in the middle of inferring its definition scope — for instance,
|
/// decorators.)
|
||||||
/// when applying decorators.)
|
|
||||||
fn function_signature_expression_type<'db>(
|
fn function_signature_expression_type<'db>(
|
||||||
db: &'db dyn Db,
|
db: &'db dyn Db,
|
||||||
definition: Definition<'db>,
|
definition: Definition<'db>,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue