Call the variable (if it represents a function). Parameters ---------- args: List[Expr] The arguments to the call. attr: Optional[Dict[str, object]] The additional attributes to the call. Returns ------- call: ExprWit
(self, *args: list[Expr], attrs: dict[str, Any] | None = None)
| 200 | return _binary_rhs_helper(other) |
| 201 | |
| 202 | def __call__(self, *args: list[Expr], attrs: dict[str, Any] | None = None) -> "ExprWithOp": |
| 203 | """Call the variable (if it represents a function). |
| 204 | |
| 205 | Parameters |
| 206 | ---------- |
| 207 | args: List[Expr] |
| 208 | The arguments to the call. |
| 209 | |
| 210 | attr: Optional[Dict[str, object]] |
| 211 | The additional attributes to the call. |
| 212 | |
| 213 | Returns |
| 214 | ------- |
| 215 | call: ExprWithOp |
| 216 | A call taking the variable as a function. |
| 217 | """ |
| 218 | return Call(self, args, attrs=attrs) |
| 219 | |
| 220 | def __getitem__(self, index: int) -> "ExprWithOp": |
| 221 | """Get the i-th element of the tuple or Expr with TupleType. |