@property
    def is_empty_element(self):
        return len(self.contents) == 0 and self.can_be_empty_element
Is this tag an empty-element tag? (aka a self-closing tag)
dataset/ETHPy150Open socketubs/pyhn/pyhn/lib/bs4_py3/element.py/Tag.is_empty_element