original_docstring: Evaluate unary operation and return ast.Constant if operand is bound.
  
          Args:
              node: Unary operation to evaluate.
  
          Returns:
              Evaluated value.
          
docstring: Evaluate unary operation and return ast.Constant if operand is bound.
docstring_tokens: Evaluate unary operation and return ast . Constant if operand is bound .
code: def visit_UnaryOp(self, node: ast.UnaryOp) -> Union[ast.UnaryOp, ast.Constant]:
          """Evaluate unary operation and return ast.Constant if operand is bound.
  
          Args:
              node: Unary operation to evaluate.
  
          Returns:
              Evaluated value.
          """
          node.operand = self.visit(node.operand)
          if isinstance(node.operand, (ast.Constant, ast.Num)):
              val = ast.Constant(n=self._match_ops(node.op, self._unary_ops, node.operand.n))
              return ast.copy_location(val, node)
          return node
code_tokens: def visit_UnaryOp ( self , node : ast . UnaryOp ) -> Union [ ast . UnaryOp , ast . Constant ] : node . operand = self . visit ( node . operand ) if isinstance ( node . operand , ( ast . Constant , ast . Num ) ) : val = ast . Constant ( n = self . _match_ops ( node . op , self . _unary_ops , node . operand . n ) ) return ast . copy_location ( val , node ) return node
short_docstring: Evaluate unary operation and return ast.Constant if operand is bound.
short_docstring_tokens: Evaluate unary operation and return ast . Constant if operand is bound .
comment: """Evaluate unary operation and return ast.Constant if operand is bound.
  
          Args:
              node: Unary operation to evaluate.
  
          Returns:
              Evaluated value.
          """