(
self,
*,
argnames: Iterable[str],
valset: Iterable[object],
id: str | _HiddenParam,
marks: Iterable[Mark | MarkDecorator],
scope: Scope,
param_index: int,
nodeid: str,
)
| 1111 | marks: list[Mark] = dataclasses.field(default_factory=list) |
| 1112 | |
| 1113 | def setmulti( |
| 1114 | self, |
| 1115 | *, |
| 1116 | argnames: Iterable[str], |
| 1117 | valset: Iterable[object], |
| 1118 | id: str | _HiddenParam, |
| 1119 | marks: Iterable[Mark | MarkDecorator], |
| 1120 | scope: Scope, |
| 1121 | param_index: int, |
| 1122 | nodeid: str, |
| 1123 | ) -> CallSpec2: |
| 1124 | params = self.params.copy() |
| 1125 | indices = self.indices.copy() |
| 1126 | arg2scope = dict(self._arg2scope) |
| 1127 | for arg, val in zip(argnames, valset, strict=True): |
| 1128 | if arg in params: |
| 1129 | raise nodes.Collector.CollectError( |
| 1130 | fclass="st">"{nodeid}: duplicate parametrization of {arg!r}" |
| 1131 | ) |
| 1132 | params[arg] = val |
| 1133 | indices[arg] = param_index |
| 1134 | arg2scope[arg] = scope |
| 1135 | return CallSpec2( |
| 1136 | params=params, |
| 1137 | indices=indices, |
| 1138 | _arg2scope=arg2scope, |
| 1139 | _idlist=self._idlist if id is HIDDEN_PARAM else [*self._idlist, id], |
| 1140 | marks=[*self.marks, *normalize_mark_list(marks)], |
| 1141 | ) |
| 1142 | |
| 1143 | def getparam(self, name: str) -> object: |
| 1144 | try: |
no test coverage detected