Files
sqlalchemy/test/sql
Mike Bayer d1eeef5e67 typing updates
The :meth:`_sql.ColumnOperators.in_` and
:meth:`_sql.ColumnOperators.not_in_` are typed to include
``Iterable[Any]`` rather than ``Sequence[Any]`` for more flexibility in
argument type.

The :func:`_sql.or_` and :func:`_sql.and_` from a typing perspective
require the first argument to be present, however these functions still
accept zero arguments which will emit a deprecation warning at runtime.
Typing is also added to support sending the fixed literal ``False`` for
:func:`_sql.or_` and ``True`` for :func:`_sql.and_` as the first argument
only, however the documentation now indicates sending the
:func:`_sql.false` and :func:`_sql.true` constructs in these cases as a
more explicit approach.

Fixed typing issue where iterating over a :class:`_orm.Query` object
was not correctly typed.

Fixes: #9122
Fixes: #9123
Fixes: #9125
Change-Id: I500e3e1b826717b3dd49afa1e682c3c8279c9226
2023-01-20 09:13:58 -05:00
..
2022-11-26 18:49:06 -05:00
2021-11-24 22:51:27 -05:00
2023-01-20 09:13:58 -05:00
2023-01-20 09:13:58 -05:00
2022-11-26 18:49:06 -05:00
2022-11-16 23:03:04 +01:00
2021-11-24 22:51:27 -05:00