Skip to content

Commit

Permalink
Disable dict sorting in Config
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyTsimfer committed Jul 22, 2024
1 parent 8b858fe commit b801710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batchflow/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,5 +382,5 @@ def __iter__(self):
return iter(self.config)

def __repr__(self):
lines = ['\n' + 4 * ' ' + line for line in pformat(self.config).split('\n')]
lines = ['\n' + 4 * ' ' + line for line in pformat(self.config, sort_dicts=False).split('\n')]
return f"Config({''.join(lines)})"

0 comments on commit b801710

Please sign in to comment.