Skip to content

Commit e1a6a5a

Browse files
committed
define PROMPT_TYPE with Union
1 parent 87f37be commit e1a6a5a

File tree

1 file changed

+7
-7
lines changed
  • bigframes/bigquery/_operations

1 file changed

+7
-7
lines changed

bigframes/bigquery/_operations/ai.py

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

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

2424
import pandas as pd
2525

2626
from bigframes import clients, dtypes, series, session
2727
from bigframes.core import convert, log_adapter
2828
from bigframes.operations import ai_ops
2929

30-
PROMPT_TYPE = (
31-
series.Series
32-
| pd.Series
33-
| List[str | series.Series | pd.Series]
34-
| Tuple[str | series.Series | pd.Series, ...]
35-
)
30+
PROMPT_TYPE = Union[
31+
series.Series,
32+
pd.Series,
33+
List[Union[str, series.Series, pd.Series]],
34+
Tuple[Union[str, series.Series, pd.Series], ...],
35+
]
3636

3737

3838
@log_adapter.method_logger(custom_base_name="bigquery_ai")

0 commit comments

Comments
 (0)