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

Use Default Factory #5380

Merged
merged 1 commit into from
May 29, 2023
Merged

Use Default Factory #5380

merged 1 commit into from
May 29, 2023

Conversation

vowelparrot
Copy link
Contributor

We shouldn't be calling a constructor for a default value - should use default_factory instead. This is especially ad in this case since it requires an optional dependency and an API key to be set.

Resolves #5361

@vowelparrot vowelparrot requested a review from eyurtsev May 28, 2023 23:15
@hwchase17 hwchase17 merged commit 14099f1 into master May 29, 2023
12 checks passed
@hwchase17 hwchase17 deleted the vwp/planner_import branch May 29, 2023 13:22
vowelparrot added a commit that referenced this pull request May 31, 2023
We shouldn't be calling a constructor for a default value - should use
default_factory instead. This is especially ad in this case since it
requires an optional dependency and an API key to be set.
 
Resolves #5361
@danielchalef danielchalef mentioned this pull request Jun 5, 2023
Undertone0809 pushed a commit to Undertone0809/langchain that referenced this pull request Jun 19, 2023
We shouldn't be calling a constructor for a default value - should use
default_factory instead. This is especially ad in this case since it
requires an optional dependency and an API key to be set.
 
Resolves langchain-ai#5361
This was referenced Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation Error importing OpenAPI planner when OpenAI credentials not in environment
2 participants