From 0ead918eb05c9112d3ca927630876748f45b4717 Mon Sep 17 00:00:00 2001 From: Jalin Wang Date: Fri, 26 Jun 2026 10:26:52 +0800 Subject: [PATCH] minor(pyi): mismatched doc string (#529) Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- python/zvec/zvec.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/zvec/zvec.py b/python/zvec/zvec.py index 7bc6bc6..0046a49 100644 --- a/python/zvec/zvec.py +++ b/python/zvec/zvec.py @@ -28,8 +28,8 @@ from .typing.enum import LogLevel, LogType def init( *, - log_type: Optional[LogType] = LogType.CONSOLE, - log_level: Optional[LogLevel] = LogLevel.WARN, + log_type: Optional[LogType] = None, + log_level: Optional[LogLevel] = None, log_dir: Optional[str] = "./logs", log_basename: Optional[str] = "zvec.log", log_file_size: Optional[int] = 2048, @@ -196,7 +196,7 @@ def create_and_open( Args: path (str): Path or name of the collection to create. schema (CollectionSchema): Schema defining the structure of the collection. - option (CollectionOption): Configuration options + option (Optional[CollectionOption]): Configuration options for opening the collection. Defaults to a default-constructed ``CollectionOption()`` if not provided. @@ -231,7 +231,7 @@ def open(path: str, option: CollectionOption = CollectionOption()) -> Collection Args: path (str): Path or name of the existing collection. - option (CollectionOption): Configuration options + option (CollectionOption, optional): Configuration options for opening the collection. Defaults to a default-constructed ``CollectionOption()`` if not provided.