mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
update docs on is_typing_reference
This commit is contained in:
parent
8306e0fe3b
commit
148ccc01ae
1 changed files with 4 additions and 2 deletions
|
@ -44,8 +44,10 @@ impl IsTypingReference {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns `true` if the [`ResolvedReference`] is in a typing-only context _or_ a runtime-evaluated
|
||||
/// context (with quoting enabled).
|
||||
/// Returns `IsTypingReference::Yes` if the [`ResolvedReference`] is in a typing-only context _or_ a
|
||||
/// runtime-evaluated context (with quoting enabled).
|
||||
///
|
||||
/// See [`IsTypingReference`] for details on the other possible return values.
|
||||
pub(crate) fn is_typing_reference(
|
||||
reference: &ResolvedReference,
|
||||
settings: &Settings,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue