pub fn class_has_attr(class: &PyClassRef, attr_name: &str) -> bool {
    class.attributes.borrow().contains_key(attr_name)
        || class
            .mro
            .iter()
            .any(|c| c.attributes.borrow().contains_key(attr_name))
}
// This is the internal has_attr implementation for fast lookup on a class.
This is the internal has_attr implementation for fast lookup on a class.
This is the internal has_attr implementation for fast lookup on a class .
pub fn class_has_attr(class: &PyClassRef, attr_name: &str) -> bool {
    class.attributes.borrow().contains_key(attr_name)
        || class
            .mro
            .iter()
            .any(|c| c.attributes.borrow().contains_key(attr_name))
}
pub fn class_has_attr ( class : & PyClassRef , attr_name : & str ) -> bool { class . attributes . borrow ( ) . contains_key ( attr_name ) || class . mro . iter ( ) . any ( | c | c . attributes . borrow ( ) . contains_key ( attr_name ) ) }
This is the internal has_attr implementation for fast lookup on a class.
This is the internal has_attr implementation for fast lookup on a class .
class
&PyClassRef
attr_name
&str
class
&PyClassRef
attr_name
&str