Set the name of a list of objects. Parameters ---------- s : List[str] The names of the objects. vs : List[Any] The objects to name. Returns ------- vs : List[Any] The same objects with the names set.
( # pylint: disable=invalid-name
s: list[str],
vs: list[Any],
)
| 181 | |
| 182 | @staticmethod |
| 183 | def name_many( # pylint: disable=invalid-name |
| 184 | s: list[str], |
| 185 | vs: list[Any], |
| 186 | ) -> list[Any]: |
| 187 | """Set the name of a list of objects. |
| 188 | |
| 189 | Parameters |
| 190 | ---------- |
| 191 | s : List[str] |
| 192 | The names of the objects. |
| 193 | vs : List[Any] |
| 194 | The objects to name. |
| 195 | |
| 196 | Returns |
| 197 | ------- |
| 198 | vs : List[Any] |
| 199 | The same objects with the names set. |
| 200 | """ |
| 201 | assert len(s) == len(vs) |
| 202 | return [IRBuilder.name(i, v) for i, v in zip(s, vs)] |