

def __getitem__(self, key):
    obj = self._mapping[key]
    if hasattr(obj, 'keys'):
        return self.__class__(obj)
    else:
        return obj

dataset/ETHPy150Open kdart/pycopia/aid/pycopia/dictlib.py AttrDictWrapper.__getitem__/original