Set the name of an object. Parameters ---------- s : str The name of the object. v : Any The object to name. Returns ------- v : Any The same object with the name set.
(s: str, v: Any)
| 163 | |
| 164 | @staticmethod |
| 165 | def name(s: str, v: Any) -> Any: |
| 166 | """Set the name of an object. |
| 167 | |
| 168 | Parameters |
| 169 | ---------- |
| 170 | s : str |
| 171 | The name of the object. |
| 172 | v : Any |
| 173 | The object to name. |
| 174 | |
| 175 | Returns |
| 176 | ------- |
| 177 | v : Any |
| 178 | The same object with the name set. |
| 179 | """ |
| 180 | return _ffi_api.IRBuilderName(s, v) # type: ignore[attr-defined] # pylint: disable=no-member |
| 181 | |
| 182 | @staticmethod |
| 183 | def name_many( # pylint: disable=invalid-name |