Skip to content

Commit 5389df7

Browse files
Merge branch 'feat/object_name_setters' of https://github.com/ansys/pyansys-geometry into feat/object_name_setters
2 parents 917d18f + 7aa6ca5 commit 5389df7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ansys/geometry/core/designer/component.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,7 @@ def set_name(
279279
) -> None:
280280
"""Set the name of the component."""
281281
self._grpc_client.log.debug(f"Renaming component {self.id} from '{self.name}' to '{name}'.")
282-
self._component_stub.SetName(
283-
SetObjectNameRequest(id=self._grpc_id, name=name)
284-
)
282+
self._component_stub.SetName(SetObjectNameRequest(id=self._grpc_id, name=name))
285283
self._name = name
286284

287285
@property

0 commit comments

Comments
 (0)