has_attributes method

has_attributes

Returns whether this node (if it is an element) has any attributes

Returns

boolean true if this node has any attributes, false otherwise.

def has_attributes(self):
    ...

See Also