feat(python): support new style optional syntax (#793)

This commit is contained in:
Chang She
2024-01-09 07:03:29 -08:00
committed by GitHub
parent 121687231c
commit 99ba5331f0
3 changed files with 36 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ def test_search_index(tmp_path, table):
def test_create_index_from_table(tmp_path, table):
table.create_fts_index("text")
df = table.search("puppy").limit(10).select(["text"]).to_pandas()
assert len(df) == 10
assert len(df) <= 10
assert "text" in df.columns
# Check whether it can be updated