@contextmanager
def edit_data(self) -> List[DXFEntity]:
    ' Context manager which yields all the group entities as\n        standard Python list::\n\n            with group.edit_data() as data:\n               # add new entities to a group\n               data.append(modelspace.add_line((0, 0), (3, 0)))\n               # remove last entity from a group\n               data.pop()\n\n        '
    data = list(self)
    (yield data)
    self.set_data(data)
Context manager which yields all the group entities as
standard Python list::

    with group.edit_data() as data:
       # add new entities to a group
       data.append(modelspace.add_line((0, 0), (3, 0)))
       # remove last entity from a group
       data.pop()
@contextmanager
def edit_data(self) -> List[DXFEntity]:
    ' Context manager which yields all the group entities as\n        standard Python list::\n\n            with group.edit_data() as data:\n               # add new entities to a group\n               data.append(modelspace.add_line((0, 0), (3, 0)))\n               # remove last entity from a group\n               data.pop()\n\n        '
    data = list(self)
    (yield data)
    self.set_data(data)