We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3204df1 commit 48aad38Copy full SHA for 48aad38
python/cocoindex/typing.py
@@ -111,9 +111,9 @@ def analyze_type_info(t: Any) -> AnalyzedTypeInfo:
111
Analyze a Python type and return the analyzed info.
112
"""
113
if isinstance(t, tuple) and len(t) == 2:
114
- key_type, value_type = t
115
- result = analyze_type_info(value_type)
116
- result.key_type = key_type
+ kt, vt = t
+ result = analyze_type_info(vt)
+ result.key_type = kt
117
return result
118
119
annotations: tuple[Annotation, ...] = ()
@@ -154,6 +154,7 @@ def analyze_type_info(t: Any) -> AnalyzedTypeInfo:
154
155
struct_type: type | None = None
156
elem_type: ElementType | None = None
157
+ key_type: type | None = None
158
if _is_struct_type(t):
159
struct_type = t
160
0 commit comments