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: make AthenaLoader profile_name optional and fix type hint #24958

Conversation

jimwbaldwin
Copy link
Contributor

  • Description: This PR makes the AthenaLoader profile_name optional and fixes the type hint which says the type is str but it should be str or None as None is handled in the loader init. This is a minor problem but it just confused me when I was using the Athena Loader to why we had to use a Profile, as I want that for local but not production.
  • Issue: AthenaLoader profile type hinting is incorrect #24957
  • Dependencies: None.

Copy link

vercel bot commented Aug 2, 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 Aug 4, 2024 8:54pm

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. community Related to langchain-community Ɑ: doc loader Related to document loader module (not documentation) 🤖:improvement Medium size change to existing code to handle new use-cases labels Aug 2, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Aug 2, 2024
@ccurme ccurme enabled auto-merge (squash) August 2, 2024 13:38
@jimwbaldwin
Copy link
Contributor Author

jimwbaldwin commented Aug 2, 2024

I am running make tests locally and its fine. Not sure why it failed earlier but its passing now.

image

Not sure how to make it build now.

@jimwbaldwin jimwbaldwin requested a review from ccurme August 4, 2024 20:54
@ccurme ccurme merged commit 6890daa into langchain-ai:master Aug 5, 2024
43 checks passed
@jimwbaldwin jimwbaldwin deleted the langchain-24957_athena_profile_type_hint branch August 5, 2024 23:54
olgamurraft pushed a commit to olgamurraft/langchain that referenced this pull request Aug 16, 2024
…angchain-ai#24958)

- **Description:** This PR makes the AthenaLoader profile_name optional
and fixes the type hint which says the type is `str` but it should be
`str` or `None` as None is handled in the loader init. This is a minor
problem but it just confused me when I was using the Athena Loader to
why we had to use a Profile, as I want that for local but not
production.
- **Issue:** langchain-ai#24957 
- **Dependencies:** None.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community Ɑ: doc loader Related to document loader module (not documentation) 🤖:improvement Medium size change to existing code to handle new use-cases lgtm PR looks good. Use to confirm that a PR is ready for merging. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants