@classmethod
def _strip_unpinned_and_editables(cls, cache):
    """
        Strip out unpinned and editable deps from given dep cache map.
        """
    stripped = type(cache)()
    for name, dep_map in cache.items():
        stripped_dep_map = type(dep_map)()
        for version, deps in dep_map.items():
            if ':UNPINNED:' not in version and ':EDITABLE:' not in version:
                stripped_dep_map[version] = deps
        stripped[name] = stripped_dep_map
    return stripped
