Skip to content

Commit 37473b6

Browse files
author
Nathan Givens
committed
IWF-466 improve readability
1 parent 7e18f42 commit 37473b6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

iwf/state_execution_locals.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ def record_event(self, key: str, *event_data: Tuple[Any, ...]):
4545

4646
def get_upsert_state_execution_local_attributes(self) -> List[KeyValue]:
4747
return [
48-
KeyValue(item[0], item[1])
49-
for item in self._upsert_attributes_to_return_to_server.items()
48+
KeyValue(item_key, item_value)
49+
for item_key, item_value in self._upsert_attributes_to_return_to_server.items()
5050
]
5151

5252
def get_record_events(self) -> List[KeyValue]:
53-
return [KeyValue(item[0], item[1]) for item in self._record_events.items()]
53+
return [
54+
KeyValue(item_key, item_value)
55+
for item_key, item_value in self._record_events.items()
56+
]

0 commit comments

Comments
 (0)