mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-24 20:34:31 +00:00
Use dot references in docs for methods (#7391)
## Summary This matches the convention used in the Python documentation.
This commit is contained in:
parent
21539f1663
commit
6856d0b44b
10 changed files with 18 additions and 18 deletions
|
@ -545,7 +545,7 @@ impl<'a> SemanticModel<'a> {
|
|||
///
|
||||
/// For example, given `["Class", "method"`], resolve the `BindingKind::ClassDefinition`
|
||||
/// associated with `Class`, then the `BindingKind::FunctionDefinition` associated with
|
||||
/// `Class#method`.
|
||||
/// `Class.method`.
|
||||
pub fn lookup_attribute(&'a self, value: &'a Expr) -> Option<BindingId> {
|
||||
let call_path = collect_call_path(value)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue