

def __init__(self, node):
    if isinstance(node, Env):
        self.env = node
        self.node = node._node
        self.__class__ = _EnvInspector
    elif isinstance(self, Node):
        self.env = None
        self.node = node
    else:
        raise Exception('Expecting a Node or Env instance')

dataset/ETHPy150Open jonathanslenders/python-deployer/deployer/inspection/inspector.py Inspector.__init__/VarMisuse@46/54 `node`->`self`