Skip to content

Commit e0cd6cb

Browse files
committed
types
1 parent f09cac6 commit e0cd6cb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bigframes/bigquery/_operations/ai.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from __future__ import annotations
2020

2121
import json
22-
from typing import Any, Iterable, List, Literal, Mapping, Optional, Tuple, Union
22+
from typing import Any, Dict, Iterable, List, Literal, Mapping, Optional, Tuple, Union
2323

2424
import pandas as pd
2525

@@ -469,7 +469,7 @@ def generate_embedding(
469469
# We need to get the SQL for the input data to pass as a subquery to the TVF
470470
source_sql = data_df.sql
471471

472-
struct_fields: bigframes.core.sql.literals.STRUCT_TYPE = {}
472+
struct_fields: Dict[str, bigframes.core.sql.literals.STRUCT_VALUES] = {}
473473
if output_dimensionality is not None:
474474
struct_fields["OUTPUT_DIMENSIONALITY"] = output_dimensionality
475475
if task_type is not None:

bigframes/core/sql/literals.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
import bigframes.core.sql
2222

23-
STRUCT_TYPE = Mapping[
24-
str,
25-
Union[str, int, float, bool, Mapping[str, str], List[str], Mapping[str, Any]],
23+
STRUCT_VALUES = Union[
24+
str, int, float, bool, Mapping[str, str], List[str], Mapping[str, Any]
2625
]
26+
STRUCT_TYPE = Mapping[str, STRUCT_VALUES]
2727

2828

2929
def struct_literal(struct_options: STRUCT_TYPE) -> str:

0 commit comments

Comments
 (0)