(
obj: Union[BinaryExpression[Any], ColumnClause[Any]],
**kw: Any,
)
| 1383 | # ColumnClause with parent table referring to those |
| 1384 | # replaced FromClause objects |
| 1385 | def replace( |
| 1386 | obj: Union[BinaryExpression[Any], ColumnClause[Any]], |
| 1387 | **kw: Any, |
| 1388 | ) -> Optional[KeyedColumnElement[Any]]: |
| 1389 | if isinstance(obj, ColumnClause) and obj.table in new_froms: |
| 1390 | newelem = new_froms[obj.table].corresponding_column(obj) |
| 1391 | return newelem |
| 1392 | return None |
| 1393 | |
| 1394 | kw["replace"] = replace |
| 1395 |
no test coverage detected