Skip to content

Conversation

jamesbraza
Copy link
Collaborator

We needed to call a default factory, not pass a default

@jamesbraza jamesbraza self-assigned this Aug 21, 2025
@Copilot Copilot AI review requested due to automatic review settings August 21, 2025 22:16
@jamesbraza jamesbraza added the bug Something isn't working label Aug 21, 2025
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 21, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the SearchIndex class where the index_directory parameter was incorrectly accessing a default factory function instead of calling it to get the actual default value.

  • Removes the direct access to the default factory and adds proper handling for None values
  • Adds explicit type casting and function call to retrieve the default directory path
  • Updates type annotation to include None as a valid input type

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 21, 2025
@jamesbraza jamesbraza merged commit 76d4a40 into main Aug 21, 2025
5 checks passed
@jamesbraza jamesbraza deleted the fixing-default-search branch August 21, 2025 23:59
Copy link

dosubot bot commented Aug 21, 2025

Documentation updates
No documents were updated by changes in this PR

How did I do? Any feedback?  Join Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants