-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add sync functions #9
Conversation
Add pytests Throw errors instead of returning them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested yet but a few comments
supafunc/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really like the create_client functions tbh; what do you think about just not providing them? It's easy enough for the user to just import the client they want and instantiate it, the create_client
functions don't really do much else either so it feels like bloat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be removed too but this will be a breaking change and we should remove this in all the python libraries at the same time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree - we can add deprecation warnings to all of them now and remove them soon
Co-authored-by: Anand <40204976+anand2312@users.noreply.github.com>
Co-authored-by: Anand <40204976+anand2312@users.noreply.github.com>
Co-authored-by: Anand <40204976+anand2312@users.noreply.github.com>
Welcome to Codecov 🎉Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment. Thanks for integrating Codecov - We've got you covered ☂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice work on the tests too!
What kind of change does this PR introduce?
Update with sync functions, added pytests and throw error messages instead of returning them.
What is the current behavior?
There are only async functions, no pytests and errors are returned
What is the new behavior?
We now have sync functions, pytests and errors are thrown
Additional context
Addresses #6