(cls, *args, **kwds)
return object.__new__(cls)
Constructor that prevents Base from being instantiated.
Constructor that prevents Base from being instantiated.
Constructor that prevents Base from being instantiated .
def __new__(cls, *args, **kwds):
        """Constructor that prevents Base from being instantiated."""
        assert cls is not Base, "Cannot instantiate Base"
        return object.__new__(cls)
def __new__ ( cls , * args , * * kwds ) : assert cls is not Base , "Cannot instantiate Base" return object . __new__ ( cls )