mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
Fix ArgWithDefault comments handling (#5204)
This commit is contained in:
parent
fde5dbc9aa
commit
e520a3a721
17 changed files with 73 additions and 69 deletions
|
@ -3680,7 +3680,7 @@ impl AnyNodeRef<'_> {
|
|||
|
||||
/// Compares two any node refs by their pointers (referential equality).
|
||||
pub fn ptr_eq(self, other: AnyNodeRef) -> bool {
|
||||
self.as_ptr().eq(&other.as_ptr())
|
||||
self.as_ptr().eq(&other.as_ptr()) && self.kind() == other.kind()
|
||||
}
|
||||
|
||||
/// Returns the node's [`kind`](NodeKind) that has no data associated and is [`Copy`].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue