Skip to content

Commit

Permalink
make optional int
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark committed Aug 10, 2023
1 parent cd782d1 commit dd9c589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superset/sqllab/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def write_ipc_buffer(table: pa.Table) -> pa.Buffer:

return sink.getvalue()

def bootstrap_sqllab_data(user_id: int) -> dict[str, Any]:
def bootstrap_sqllab_data(user_id: int | None) -> dict[str, Any]:
# send list of tab state ids
tabs_state = (
db.session.query(TabState.id, TabState.label)
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ def test_sqllab_backend_persistence_payload(self):
# we should have only 1 query returned, since the second one is not
# associated with any tabs
# TODO: replaces this spec by api/v1/sqllab spec later
payload = bootstrap_sqllab_data(int(user_id))
payload = bootstrap_sqllab_data(user_id)
self.assertEqual(len(payload["queries"]), 1)

@mock.patch.dict(
Expand Down

0 comments on commit dd9c589

Please sign in to comment.