[Docs] Small typo fixes (#460)

This commit is contained in:
Ayush Chaurasia
2023-09-02 22:17:19 +05:30
committed by GitHub
parent 0cba0f4f92
commit 52fa7f5577
5 changed files with 18 additions and 18 deletions

View File

@@ -16,7 +16,7 @@ from __future__ import annotations
import os
from abc import ABC, abstractmethod
from pathlib import Path
from typing import Optional
from typing import Optional, Union
import pyarrow as pa
from pyarrow import fs
@@ -40,7 +40,7 @@ class DBConnection(ABC):
self,
name: str,
data: Optional[DATA] = None,
schema: Optional[pa.Schema, LanceModel] = None,
schema: Optional[Union[pa.Schema, LanceModel]] = None,
mode: str = "create",
on_bad_vectors: str = "error",
fill_value: float = 0.0,
@@ -285,7 +285,7 @@ class LanceDBConnection(DBConnection):
self,
name: str,
data: Optional[DATA] = None,
schema: Optional[pa.Schema, LanceModel] = None,
schema: Optional[Union[pa.Schema, LanceModel]] = None,
mode: str = "create",
on_bad_vectors: str = "error",
fill_value: float = 0.0,

View File

@@ -75,7 +75,7 @@ def _to_record_batch_generator(data: Iterable, schema, on_bad_vectors, fill_valu
class Table(ABC):
"""
A [Table](Table) is a collection of Records in a LanceDB [Database](Database).
A Table is a collection of Records in a LanceDB Database.
Examples
--------
@@ -511,7 +511,7 @@ class LanceTable(Table):
other_table: Union[LanceTable, ReaderLike],
left_on: str,
right_on: Optional[str] = None,
schema: Optional[pa.Schema, LanceModel] = None,
schema: Optional[Union[pa.Schema, LanceModel]] = None,
):
"""Merge another table into this table.