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

Fix clinicaltrials error by adding missing kwargs #482

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AidanCooper
Copy link
Contributor

@AidanCooper AidanCooper commented Jul 23, 2024

I'm not sure when this bug was introduced, but ClinicalTrials.call() raises an error due an unexpected keyword argument, 'session'. Resolved by adding **kwargs to the call method. This PR also converts the method to async for consistency with the other community tools.

AI Description

The call method in the clinicaltrials.py file has been modified to include the async keyword, indicating that it is now an asynchronous function. This change allows the function to execute other code while waiting for external resources, improving the overall efficiency of the program.

Code Changes:

  • The call method has been modified to include the async keyword.
  • The **kwargs parameter has been added to the call method to allow for flexible argument passing.

Copy link
Collaborator

@BeatrixCohere BeatrixCohere left a comment

Choose a reason for hiding this comment

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

Thanks!

@AidanCooper
Copy link
Contributor Author

Hey @BeatrixCohere, I think this should be good to merge? Let me know if there's anything else you need from me

@lusmoura
Copy link
Collaborator

Hey! You'll need to run make lint so the CI checks pass and we can merge this!

ClinicalTrials.call() raises an error due an unexpected keyword
argument, 'session'. Resolved by adding **kwargs to the call method.
This PR also converts the method to async for consistency with the other
community tools.
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.

None yet

3 participants