diff options
| author | Federico Caselli <cfederico87@gmail.com> | 2022-09-17 13:12:35 +0200 |
|---|---|---|
| committer | Federico Caselli <cfederico87@gmail.com> | 2022-09-17 13:12:35 +0200 |
| commit | 02fe382d6bfc5e8ccab6e2024a5241379a02b7e0 (patch) | |
| tree | 71be66e11aec5224f77f8e4e4e62ad9bd3fb6491 /lib/sqlalchemy/testing | |
| parent | f582618afe1a5b112a1a22ddd0cbfcc8b97c8f09 (diff) | |
| download | sqlalchemy-02fe382d6bfc5e8ccab6e2024a5241379a02b7e0.tar.gz | |
Improve array_agg and Array processing
The :class:`_functions.array_agg` will now set the array dimensions to 1.
Improved :class:`_types.ARRAY` processing to accept ``None`` values as
value of a multi-array.
Fixes: #7083
Change-Id: Iafec4f77fde9719ccc7c8535bf6235dbfbc62102
Diffstat (limited to 'lib/sqlalchemy/testing')
| -rw-r--r-- | lib/sqlalchemy/testing/config.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/config.py b/lib/sqlalchemy/testing/config.py index e418b48be..1cb463977 100644 --- a/lib/sqlalchemy/testing/config.py +++ b/lib/sqlalchemy/testing/config.py @@ -13,6 +13,8 @@ import collections import typing from typing import Any from typing import Iterable +from typing import Optional +from typing import overload from typing import Tuple from typing import Union @@ -37,6 +39,15 @@ else: _fixture_functions = None # installed by plugin_base +@overload +def combinations( + *comb: Union[Any, Tuple[Any, ...]], + argnames: Optional[str] = None, + id_: Optional[str] = None, +): + ... + + def combinations(*comb: Union[Any, Tuple[Any, ...]], **kw: str): r"""Deliver multiple versions of a test based on positional combinations. |
