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

community: correct return type of get_files_from_directory in github tool #27885

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

lorenzb07
Copy link
Contributor

@lorenzb07 lorenzb07 commented Nov 4, 2024

About:

  • Description: the get_files_from_directory method return a string, but it's used in other methods that expect a List[str]
  • Issue: None
  • Dependencies: None

This pull request import a new method list_files with the old logic of get_files_from_directory, but it return a List[str] at the end.
The behavior of _ get_files_from_directory_ is not changed.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 4, 2024
Copy link

vercel bot commented Nov 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Nov 25, 2024 3:04pm

@dosubot dosubot bot added community Related to langchain-community 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Nov 4, 2024
@efriis
Copy link
Member

efriis commented Dec 11, 2024

hey! could you add a unit test that shows the failure case? (and prevents this regression in the future)

@efriis efriis self-assigned this Dec 11, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Dec 16, 2024
@efriis efriis merged commit b79a115 into langchain-ai:master Dec 16, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature community Related to langchain-community lgtm PR looks good. Use to confirm that a PR is ready for merging. size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants