Skip to content

Commit 99511f2

Browse files
committed
[no ci] sort generated __all__ for deterministic order
autosummary uses the order of __all__ for the table, so having it in alphabetical order is nice
1 parent 644f863 commit 99511f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/utils/_docs/_populate_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ def _add_imports_to_all(include_modules: bool | list[str] = False, exclude: list
1818
included_vars.append(var_name)
1919
elif var_name not in exclude and not var_name.startswith("_"):
2020
included_vars.append(var_name)
21-
global_vars["__all__"] = list(set(all_vars).union(included_vars))
21+
global_vars["__all__"] = sorted(list(set(all_vars).union(included_vars)))

0 commit comments

Comments
 (0)