def __getitem__(self, key: Any) -> Any:
    'Provide compatibility subscriptable support.'
    if (key == 'path'):
        return str(self.path)
    if (key == 'type'):
        return str(self.kind)
    raise NotImplementedError()
Provide compatibility subscriptable support.
def __getitem__(self, key: Any) -> Any:
    
    if (key == 'path'):
        return str(self.path)
    if (key == 'type'):
        return str(self.kind)
    raise NotImplementedError()