original_docstring: Evaluate binary operation and return ast.Constant if operands are bound.
  
          Args:
              node: Binary operation to evaluate.
  
          Returns:
              Evaluated value.
          
docstring: Evaluate binary operation and return ast.Constant if operands are bound.
docstring_tokens: Evaluate binary operation and return ast . Constant if operands are bound .
code: def visit_BinOp(self, node: ast.BinOp) -> Union[ast.BinOp, ast.Constant]:
          """Evaluate binary operation and return ast.Constant if operands are bound.
  
          Args:
              node: Binary operation to evaluate.
  
          Returns:
              Evaluated value.
          """
          node.left = self.visit(node.left)
          node.right = self.visit(node.right)
          if isinstance(node.left, (ast.Constant, ast.Num)) and isinstance(
              node.right, (ast.Constant, ast.Num)
          ):
              val = ast.Constant(
                  n=self._match_ops(node.op, self._binary_ops, node.left.n, node.right.n)
              )
              return ast.copy_location(val, node)
          return node
code_tokens: def visit_BinOp ( self , node : ast . BinOp ) -> Union [ ast . BinOp , ast . Constant ] : node . left = self . visit ( node . left ) node . right = self . visit ( node . right ) if isinstance ( node . left , ( ast . Constant , ast . Num ) ) and isinstance ( node . right , ( ast . Constant , ast . Num ) ) : val = ast . Constant ( n = self . _match_ops ( node . op , self . _binary_ops , node . left . n , node . right . n ) ) return ast . copy_location ( val , node ) return node
short_docstring: Evaluate binary operation and return ast.Constant if operands are bound.
short_docstring_tokens: Evaluate binary operation and return ast . Constant if operands are bound .
comment: """Evaluate binary operation and return ast.Constant if operands are bound.
  
          Args:
              node: Binary operation to evaluate.
  
          Returns:
              Evaluated value.
          """