Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ mark_instance_attribute
Method
mark_instance_attribute
crates/ty_python_core/src/member.rs:56–58 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
54
}
55
56
pub(super) fn mark_instance_attribute(&mut self) {
57
self.flags.insert(MemberFlags::IS_INSTANCE_ATTRIBUTE);
58
}
59
60
/// Is the place an instance attribute?
61
pub fn is_instance_attribute(&self) -> bool {
Callers
1
visit_expr
Method · 0.80
Calls
1
insert
Method · 0.45
Tested by
no test coverage detected