(self, child: Union["OpenSCADObject", Sequence["OpenSCADObject"]])
return self
if child is a single object, assume it's an OpenSCADObjects and 
        add it to self.children

        if child is a list, assume its members are all OpenSCADObjects and
        add them all to self.children
if child is a single object, assume it's an OpenSCADObjects and 
        add it to self.children
if child is a single object assume it s an OpenSCADObjects and add it to self . children
def add(self, child: Union["OpenSCADObject", Sequence["OpenSCADObject"]]) -> "OpenSCADObject":
        """
        if child is a single object, assume it's an OpenSCADObjects and 
        add it to self.children

        if child is a list, assume its members are all OpenSCADObjects and
        add them all to self.children
        """
        if isinstance(child, (list, tuple)):
            # __call__ passes us a list inside a tuple, but we only care
            # about the list, so skip single-member tuples containing lists
            if len(child) == 1 and isinstance(child[0], (list, tuple)):
                child = child[0]
            [self.add(c) for c in child]
        elif isinstance(child, int):
            # Allowing for creating object by adding to 0 (as in sum())
            if child != 0:
                raise ValueError
        else:
            self.children.append(child)  # type: ignore
            child.set_parent(self)  # type: ignore
        return self
def add ( self , child : Union [ "OpenSCADObject" , Sequence [ "OpenSCADObject" ] ] ) -> "OpenSCADObject" : if isinstance ( child , ( list , tuple ) ) : # __call__ passes us a list inside a tuple, but we only care # about the list, so skip single-member tuples containing lists if len ( child ) == 1 and isinstance ( child [ 0 ] , ( list , tuple ) ) : child = child [ 0 ] [ self . add ( c ) for c in child ] elif isinstance ( child , int ) : # Allowing for creating object by adding to 0 (as in sum()) if child != 0 : raise ValueError else : self . children . append ( child ) # type: ignore child . set_parent ( self ) # type: ignore return self