(
obj: Union[BinaryExpression[Any], ColumnClause[Any]],
**kw: Any,
)
| 1420 | # ColumnClause with parent table referring to those |
| 1421 | # replaced FromClause objects |
| 1422 | def replace( |
| 1423 | obj: Union[BinaryExpression[Any], ColumnClause[Any]], |
| 1424 | **kw: Any, |
| 1425 | ) -> Optional[KeyedColumnElement[Any]]: |
| 1426 | if isinstance(obj, ColumnClause) and obj.table in new_froms: |
| 1427 | newelem = new_froms[obj.table].corresponding_column(obj) |
| 1428 | return newelem |
| 1429 | return None |
| 1430 | |
| 1431 | kw["replace"] = replace |
| 1432 |
no test coverage detected