Skip to content

Commit

Permalink
Reverted to using update for complex reasoning interface dict
Browse files Browse the repository at this point in the history
The use of `|=` is only available since Python 3.9
Reverting to `update` for more backward compatibility
  • Loading branch information
asgibson committed Mar 22, 2024
1 parent 0b62cd3 commit 79923f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onair/src/reasoning/complex_reasoning_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def update_and_render_reasoning(self, high_level_data):
intelligent_outcomes['complex_systems'] = {}
for plugin in self.reasoning_constructs:
plugin.update(high_level_data=intelligent_outcomes)
intelligent_outcomes['complex_systems'] |= {plugin.component_name:plugin.render_reasoning()}
intelligent_outcomes['complex_systems'].update({plugin.component_name:plugin.render_reasoning()})
return intelligent_outcomes

def check_for_salient_event(self):
Expand Down

0 comments on commit 79923f2

Please sign in to comment.