Skip to content

Commit 904efe7

Browse files
stricter typing for cursor
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 80b7bc3 commit 904efe7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/databricks/sql/backend/databricks_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def get_query_state(self, command_id: CommandId) -> CommandState:
121121
def get_execution_result(
122122
self,
123123
command_id: CommandId,
124-
cursor: Any,
124+
cursor: "Cursor",
125125
) -> "ResultSet":
126126
pass
127127

@@ -132,7 +132,7 @@ def get_catalogs(
132132
session_id: SessionId,
133133
max_rows: int,
134134
max_bytes: int,
135-
cursor: Any,
135+
cursor: "Cursor",
136136
) -> "ResultSet":
137137
pass
138138

src/databricks/sql/backend/thrift_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ def get_catalogs(
10131013
session_id: SessionId,
10141014
max_rows: int,
10151015
max_bytes: int,
1016-
cursor: Any,
1016+
cursor: "Cursor",
10171017
) -> "ResultSet":
10181018
thrift_handle = session_id.to_thrift_handle()
10191019
if not thrift_handle:

0 commit comments

Comments
 (0)