A synonym for the ARRAY-level :meth:`.ARRAY.Comparator.any` method. See that method for details. .. deprecated:: 2.1 The :meth:`_types.ARRAY.Comparator.any` and :meth:`_types.ARRAY.Comparator.all` methods for arrays are deprecated for removal, along with the PG-spec
(
other: typing_Any,
arrexpr: _ColumnExpressionArgument[_T],
operator: OperatorType = operators.eq,
)
| 48 | |
| 49 | |
| 50 | def Any( |
| 51 | other: typing_Any, |
| 52 | arrexpr: _ColumnExpressionArgument[_T], |
| 53 | operator: OperatorType = operators.eq, |
| 54 | ) -> ColumnElement[bool]: |
| 55 | """A synonym for the ARRAY-level :meth:`.ARRAY.Comparator.any` method. |
| 56 | See that method for details. |
| 57 | |
| 58 | .. deprecated:: 2.1 |
| 59 | |
| 60 | The :meth:`_types.ARRAY.Comparator.any` and |
| 61 | :meth:`_types.ARRAY.Comparator.all` methods for arrays are deprecated |
| 62 | for removal, along with the PG-specific :func:`_postgresql.Any` and |
| 63 | :func:`_postgresql.All` functions. See :func:`_sql.any_` and |
| 64 | :func:`_sql.all_` functions for modern use. |
| 65 | |
| 66 | |
| 67 | """ |
| 68 | |
| 69 | return arrexpr.any(other, operator) # type: ignore[no-any-return, union-attr] # noqa: E501 |
| 70 | |
| 71 | |
| 72 | def All( |