Skip to content

Commit 2e5c046

Browse files
authored
fix: arg name (#1194)
1 parent 0ec73a7 commit 2e5c046

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/cocoindex/typing.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,16 +475,16 @@ def _encode_type(type_info: AnalyzedTypeInfo) -> dict[str, Any]:
475475
}
476476

477477

478-
def encode_enriched_type_info(enriched_type_info: AnalyzedTypeInfo) -> dict[str, Any]:
478+
def encode_enriched_type_info(type_info: AnalyzedTypeInfo) -> dict[str, Any]:
479479
"""
480-
Encode an enriched type info to a CocoIndex engine's type representation
480+
Encode an `AnalyzedTypeInfo` to a CocoIndex engine's `EnrichedValueType` representation
481481
"""
482-
encoded: dict[str, Any] = {"type": _encode_type(enriched_type_info)}
482+
encoded: dict[str, Any] = {"type": _encode_type(type_info)}
483483

484-
if enriched_type_info.attrs is not None:
485-
encoded["attrs"] = enriched_type_info.attrs
484+
if type_info.attrs is not None:
485+
encoded["attrs"] = type_info.attrs
486486

487-
if enriched_type_info.nullable:
487+
if type_info.nullable:
488488
encoded["nullable"] = True
489489

490490
return encoded

0 commit comments

Comments
 (0)