def __new__(cls, *args, **kwargs):
        """Used to make sure that TaskCache will not be instantiated."""
        if cls is TaskCache:
            raise CacheError("`TaskCache` may not be instantiated and only provides static access.")

        return object.__new__(cls, *args, **kwargs) if PY2 else object.__new__(cls)
def __new__ ( cls , * args , ** kwargs ) : if cls is TaskCache : raise CacheError ( "`TaskCache` may not be instantiated and only provides static access." ) return object . __new__ ( cls , * args , ** kwargs ) if PY2 else object . __new__ ( cls )
Used to make sure that TaskCache will not be instantiated.