67e29d2548
The main motivation for this change is to simplify the type shown in code editors -- `Sequence[str]` is easier to follow than `Union[list[str], tuple[str, ...]]`. It also permits using other types if desired. It might lead to problems if someone uses some oddball sequence type, but hopefully they won't do that.
6 lines
287 B
ReStructuredText
6 lines
287 B
ReStructuredText
``@pytest.mark.parametrize()`` (and similar functions) now accepts any ``Sequence[str]`` for the argument names,
|
|
instead of just ``list[str]`` and ``tuple[str, ...]``.
|
|
|
|
(Note that ``str``, which is itself a ``Sequence[str]``, is still treated as a
|
|
comma-delimited name list, as before).
|