def get_delete(self, kind):
        # type: (str) -> bool
        """Get configured auto-delete flag for a given TempDirectory type,
        default True.
        """
        return self._should_delete.get(kind, True)
Get configured auto-delete flag for a given TempDirectory type,
        default True.
        
product/gradle-plugin/src/main/python/pip/_internal/utils/temp_dir.py