Skip to content

Commit

Permalink
script_interface: Fix dict_keys-list merge bug (espressomd#4674)
Browse files Browse the repository at this point in the history
Fixes espressomd#4673 

Description of changes:
- Convert `dict_keys` to list before trying to concatenate with a list
  • Loading branch information
kodiakhq[bot] authored and jngrad committed Mar 2, 2023
1 parent 2e1fe34 commit 9d10d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/espressomd/script_interface.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class ScriptInterfaceHelper(PScriptInterface):
return (_unpickle_so_class, (self._so_name, self._serialize()))

def __dir__(self):
return self.__dict__.keys() + self._valid_parameters()
return list(self.__dict__.keys()) + self._valid_parameters()

def __getattr__(self, attr):
if attr in self._valid_parameters():
Expand Down

0 comments on commit 9d10d3d

Please sign in to comment.