def METHOD_NAME(self, tag: Tag) -> bool:
    # INFO - BL - 2019/4/8 - returns True if tag is blacklisted or
    # contains a blacklisted class or id
    if tag.name.lower() in self.config.tag_blacklist:
        return True
    if "class" in tag.attrs:
        for elem in self.config.class_blacklist:
            if elem in tag.attrs["class"]:
                return True
    if "id" in tag.attrs:
        for elem in self.config.id_blacklist:
            if elem in tag.attrs["id"]:
                return True
    return False