Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make _need_to_load not assume that file ordering remained the same #502

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion autoapi/_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ def _need_to_load(self, files):
if self.app.env.config_status != sphinx.environment.CONFIG_OK:
return True

return last_files != files or not last_mtime or last_mtime < this_mtime
return (
set(last_files) != set(files) or not last_mtime or last_mtime < this_mtime
)

def _find_files(self, patterns, dirs, ignore):
for dir_ in dirs:
Expand Down
1 change: 1 addition & 0 deletions docs/changes/502.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make _need_to_load not assume that file ordering remained the same