@@ -126,12 +126,12 @@ def extract_from(
126
126
127
127
@staticmethod
128
128
def _parse_parametrize_args (
129
- argnames : Union [str , List [str ], Tuple [ str , ... ]],
129
+ argnames : Union [str , Sequence [str ]],
130
130
argvalues : Iterable [Union ["ParameterSet" , Sequence [object ], object ]],
131
131
* args ,
132
132
** kwargs ,
133
- ) -> Tuple [Union [ List [ str ], Tuple [ str , ...] ], bool ]:
134
- if not isinstance (argnames , ( tuple , list ) ):
133
+ ) -> Tuple [Sequence [ str ], bool ]:
134
+ if isinstance (argnames , str ):
135
135
argnames = [x .strip () for x in argnames .split ("," ) if x .strip ()]
136
136
force_tuple = len (argnames ) == 1
137
137
else :
@@ -150,12 +150,12 @@ def _parse_parametrize_parameters(
150
150
@classmethod
151
151
def _for_parametrize (
152
152
cls ,
153
- argnames : Union [str , List [str ], Tuple [ str , ... ]],
153
+ argnames : Union [str , Sequence [str ]],
154
154
argvalues : Iterable [Union ["ParameterSet" , Sequence [object ], object ]],
155
155
func ,
156
156
config : Config ,
157
157
nodeid : str ,
158
- ) -> Tuple [Union [ List [ str ], Tuple [ str , ...] ], List ["ParameterSet" ]]:
158
+ ) -> Tuple [Sequence [ str ], List ["ParameterSet" ]]:
159
159
argnames , force_tuple = cls ._parse_parametrize_args (argnames , argvalues )
160
160
parameters = cls ._parse_parametrize_parameters (argvalues , force_tuple )
161
161
del argvalues
@@ -434,7 +434,7 @@ def __call__(
434
434
class _ParametrizeMarkDecorator (MarkDecorator ):
435
435
def __call__ ( # type: ignore[override]
436
436
self ,
437
- argnames : Union [str , List [str ], Tuple [ str , ... ]],
437
+ argnames : Union [str , Sequence [str ]],
438
438
argvalues : Iterable [Union [ParameterSet , Sequence [object ], object ]],
439
439
* ,
440
440
indirect : Union [bool , Sequence [str ]] = ...,
0 commit comments