Skip to content

Commit

Permalink
test tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
Ce11an committed Aug 26, 2024
1 parent 7269df1 commit 2bebfef
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions surrealdb/async_execution_mixins/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
class AsyncQueryMixin:
"""This class is responsible for the interface between python and the Rust SurrealDB library for creating a document."""

async def query(
self: SurrealDB, query: str, bind: Optional[dict[str, Any]] = None
) -> List[dict]:
async def query(self: SurrealDB, query: str, bind: Any) -> List[dict]:
"""
queries the database.
Expand All @@ -33,9 +31,6 @@ async def query(
:return: None
"""
if bind is not None:
if not all(isinstance(key, str) for key in bind):
raise ValueError("All keys in 'bind' must be strings.")
try:
return json.loads(await rust_query_future(self._connection, query, bind))[0]
except Exception as e:
Expand Down

0 comments on commit 2bebfef

Please sign in to comment.