chore: add pyright static type checking and fix some of the table interface (#1996)

* Enable `pyright` in the project
* Fixed some pyright typing errors in `table.py`
This commit is contained in:
Lei Xu
2025-01-04 15:24:58 -08:00
committed by GitHub
parent 164ce397c2
commit f76c4a5ce1
7 changed files with 83 additions and 91 deletions

View File

@@ -53,8 +53,9 @@ tests = [
"pytz",
"polars>=0.19, <=1.3.0",
"tantivy",
"pyarrow-stubs"
]
dev = ["ruff", "pre-commit"]
dev = ["ruff", "pre-commit", "pyright"]
docs = ["mkdocs", "mkdocs-jupyter", "mkdocs-material", "mkdocstrings[python]"]
clip = ["torch", "pillow", "open-clip"]
embeddings = [
@@ -94,3 +95,7 @@ markers = [
"asyncio",
"s3_test",
]
[tool.pyright]
include = ["python/lancedb/table.py"]
pythonVersion = "3.12"