-
-
Notifications
You must be signed in to change notification settings - Fork 54
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: add get, head and count parameters to the rpc method. #444
Conversation
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.
We've reviewed this pull request using the Sourcery rules engine. If you would also like our AI-powered code review then let us know.
@@ -78,12 +80,22 @@ def from_table(self, table: str) -> AsyncRequestBuilder: | |||
"""Alias to :meth:`from_`.""" | |||
return self.from_(table) | |||
|
|||
def rpc(self, func: str, params: dict) -> AsyncRPCFilterRequestBuilder[Any]: | |||
def rpc( | |||
self, |
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.
issue (code-quality): We've found these issues:
- Move setting of default value for variable into
else
branch (introduce-default-else
) - Split conditional into multiple branches [×2] (
split-or-ifs
) - Merge duplicate blocks in conditional [×2] (
merge-duplicate-blocks
) - Remove redundant conditional [×2] (
remove-redundant-if
)
@@ -78,12 +80,22 @@ def from_table(self, table: str) -> SyncRequestBuilder: | |||
"""Alias to :meth:`from_`.""" | |||
return self.from_(table) | |||
|
|||
def rpc(self, func: str, params: dict) -> SyncRPCFilterRequestBuilder[Any]: | |||
def rpc( | |||
self, |
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.
issue (code-quality): We've found these issues:
- Move setting of default value for variable into
else
branch (introduce-default-else
) - Split conditional into multiple branches [×2] (
split-or-ifs
) - Merge duplicate blocks in conditional [×2] (
merge-duplicate-blocks
) - Remove redundant conditional [×2] (
remove-redundant-if
)
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 if tested
What kind of change does this PR introduce?
feature update
What is the current behavior?
You can't perform get, head or count on a rpc method
What is the new behavior?
You can perform get, head or count on a rpc method
Additional context
Add any other context or screenshots.