def __contains__(self, item: Union[(str, DXFEntity)]) -> bool:
    ' Returns ``True`` if item is in :class:`DXFGroup`. `item` has to be\n        a handle string or an object of type :class:`DXFEntity` or inherited.\n\n        '
    handle = (item if isinstance(item, str) else item.dxf.handle)
    return (handle in set(self.handles()))
Returns ``True`` if item is in :class:`DXFGroup`. `item` has to be
a handle string or an object of type :class:`DXFEntity` or inherited.
def __contains__(self, item: Union[(str, DXFEntity)]) -> bool:
    ' Returns ``True`` if item is in :class:`DXFGroup`. `item` has to be\n        a handle string or an object of type :class:`DXFEntity` or inherited.\n\n        '
    handle = (item if isinstance(item, str) else item.dxf.handle)
    return (handle in set(self.handles()))