-
Notifications
You must be signed in to change notification settings - Fork 53
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
Bug: Refactor HTTP client. #59
Comments
Yes, I totally agree that the HTTP client needs refactoring, and there is also plenty of functionality missing compared to the WS one. This will be fixed in due course, but the HTTP implementation is not the highest priority at the moment, as we are first making sure the WS implementation for all major drivers is solid. |
No problem. Would you be happy to implement features like |
Yeah, absolutely |
# type: ignore had to be added to the HTTP client. The client needs to be refactored, see: surrealdb#59
How much refactoring are we looking at here? I'd love to throw myself in the ring for once. |
I think at the very least we would want the following done:
Let me know if I am missing anything @AlexFrid. I am happy to help if needed 😄 |
That's pretty much it. That being said, there might be cases where the HTTP API doesn't have some WS functionality built yet, as we are mainly focusing on WS at the moment, but it will come in due course. |
Describe the bug
The HTTP client needs refactoring. There are several issues that I have found when running
mypy
.Some of these errors include:
As well as this there are several differences between the HTTP client and WS client. This can be confusing to users. For example:
__init__
method takes different arguments.Steps to reproduce
If
mypy
is installed in your environment:poetry run mypy .
Expected behaviour
mypy
.SurrealDB version
surreal 1.0.0-beta.8+20220930.c246533 for macos on x86_64
surrealdb.py version
surrealdb.py 0.30 for macOS on aarch64 using Python 3.9.1
Contact Details
[email protected]
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: