def insert(self, index, item):
        """Insert item if callable. Extends list.insert."""
        if not callable(item):
            raise ValueError("All items must be callable")

        else:
            super().insert(index, item)
Insert item if callable. Extends list.insert.
nodezator/ourstdlibs/collections/general.py