Fix token expiry miscalculation (#24639)

This commit is contained in:
Yongtao Huang
2025-08-27 18:19:58 +08:00
committed by GitHub
parent 4cd00efe3b
commit bb718acadf
4 changed files with 7 additions and 11 deletions

View File

@@ -128,10 +128,6 @@ def _build_variable_from_mapping(*, mapping: Mapping[str, Any], selector: Sequen
return cast(Variable, result)
def infer_segment_type_from_value(value: Any, /) -> SegmentType:
return build_segment(value).value_type
def build_segment(value: Any, /) -> Segment:
# NOTE: If you have runtime type information available, consider using the `build_segment_with_type`
# below