mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-09 13:22:58 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user