Skip to content

Commit 94f0978

Browse files
authored
Merge pull request #40 from ansys/fix/rename-value-to-state
Rename value to state
2 parents 0c6ab67 + b55cda7 commit 94f0978

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/ansys/engineeringworkflow/api/iasyncworkflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ async def get_metadata(self) -> CommonVariableMetadata:
294294
...
295295

296296
@abstractmethod
297-
async def get_value(self, hid: Optional[str] = None) -> VariableState:
298-
"""Get the value of this datapin."""
297+
async def get_state(self, hid: Optional[str] = None) -> VariableState:
298+
"""Get the state of this datapin."""
299299
...
300300

301301
@abstractmethod
302-
async def set_value(self, value: VariableState) -> None:
303-
"""Set the value of this datapin."""
302+
async def set_state(self, state: VariableState) -> None:
303+
"""Set the state of this datapin."""
304304
...

src/ansys/engineeringworkflow/api/iworkflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,13 @@ def value_type(self) -> VariableType:
328328
"""Get the type of value this datapin stores."""
329329

330330
@abstractmethod
331-
def get_value(self, hid: Optional[str] = None) -> VariableState:
332-
"""Get the value of this datapin."""
331+
def get_state(self, hid: Optional[str] = None) -> VariableState:
332+
"""Get the state of this datapin."""
333333
...
334334

335335
@abstractmethod
336-
def set_value(self, value: VariableState) -> None:
337-
"""Set the value of this datapin."""
336+
def set_state(self, state: VariableState) -> None:
337+
"""Set the state of this datapin."""
338338
...
339339

340340
@property

0 commit comments

Comments
 (0)