From e8bdfe9d5ca4f6227d7a5a5fb35e7c68e8f2e80c Mon Sep 17 00:00:00 2001 From: Jiangzhou He Date: Thu, 16 Oct 2025 23:20:05 -0700 Subject: [PATCH] fix: arg name --- python/cocoindex/typing.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/cocoindex/typing.py b/python/cocoindex/typing.py index 94a9266a3..c4b0ef600 100644 --- a/python/cocoindex/typing.py +++ b/python/cocoindex/typing.py @@ -475,16 +475,16 @@ def _encode_type(type_info: AnalyzedTypeInfo) -> dict[str, Any]: } -def encode_enriched_type_info(enriched_type_info: AnalyzedTypeInfo) -> dict[str, Any]: +def encode_enriched_type_info(type_info: AnalyzedTypeInfo) -> dict[str, Any]: """ - Encode an enriched type info to a CocoIndex engine's type representation + Encode an `AnalyzedTypeInfo` to a CocoIndex engine's `EnrichedValueType` representation """ - encoded: dict[str, Any] = {"type": _encode_type(enriched_type_info)} + encoded: dict[str, Any] = {"type": _encode_type(type_info)} - if enriched_type_info.attrs is not None: - encoded["attrs"] = enriched_type_info.attrs + if type_info.attrs is not None: + encoded["attrs"] = type_info.attrs - if enriched_type_info.nullable: + if type_info.nullable: encoded["nullable"] = True return encoded