Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Conversation

silentworks
Copy link
Collaborator

@silentworks silentworks commented Oct 23, 2023

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

Add pytests
Throw errors instead of returning them
Copy link
Contributor

@anand2312 anand2312 left a 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

Copy link
Contributor

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

Copy link
Collaborator Author

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.

Copy link
Contributor

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

@codecov-commenter

This comment was marked as off-topic.

Copy link
Contributor

@anand2312 anand2312 left a 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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants