Skip to content

Commit 2cea272

Browse files
fix: add docstring
1 parent f5333cd commit 2cea272

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/ansys/dpf/core/dpf_operator.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,21 @@ def config(self, value):
664664

665665
@property
666666
@version_requires("10.0")
667-
def id(self):
667+
def id(self) -> int:
668+
"""Retrieve the unique identifier of the operator.
669+
670+
This property returns the unique ID associated with the operator.
671+
This property is lazily initialized.
672+
673+
Returns
674+
-------
675+
int
676+
The unique identifier of the operator.
677+
678+
Notes
679+
-----
680+
Property available with server's version starting at 10.0.
681+
"""
668682
if self._id is None:
669683
operator_id_op = Operator("operator_id", server=self._server)
670684
operator_id_op.connect_operator_as_input(0, self)

0 commit comments

Comments
 (0)