File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: 2024-present deepset GmbH <[email protected] > 22#
33# SPDX-License-Identifier: Apache-2.0
4- __version__ = "0.6.2 "
4+ __version__ = "0.6.3 "
Original file line number Diff line number Diff line change @@ -12,9 +12,10 @@ def load(self) -> t.Iterable[docspec.Module]:
1212 Load the modules, but include inherited methods in the classes.
1313 """
1414 # Load all haystack modules
15+ # Sort by module name to ensure deterministic ordering across different filesystems
1516 temp_loader = PythonLoader (search_path = ["../../../haystack" ])
1617 temp_loader .init (Context (directory = "." ))
17- all_modules = list (temp_loader .load ())
18+ all_modules = sorted (temp_loader .load (), key = lambda m : m . name )
1819
1920 # Collect all classes
2021 classes = {}
@@ -24,7 +25,8 @@ def load(self) -> t.Iterable[docspec.Module]:
2425 classes [member .name ] = member
2526
2627 # Load the modules specified in the search path
27- modules = super ().load ()
28+ # Sort by module name to ensure deterministic ordering across different filesystems
29+ modules = sorted (super ().load (), key = lambda m : m .name )
2830
2931 # Add inherited methods to the classes
3032 modules = self .include_inherited_methods (modules , classes )
You can’t perform that action at this time.
0 commit comments