1818
1919from __future__ import annotations
2020
21- import datetime
2221import decimal
23- from typing import Any , Literal , Optional , TypeVar , Union
22+ from typing import Any , Literal , Union
2423
2524import bigframes .core .col
26- import bigframes .core .expression as ex
2725import bigframes .core .googlesql
2826import bigframes .core .sentinels as sentinels
29- import bigframes .operations as ops
3027import bigframes .series as series
3128from bigframes import dtypes
3229from bigframes .operations import googlesql
@@ -301,7 +298,6 @@ def _ARRAY_TO_STRING_SIG(*args):
301298 # Pad args with None to match max expected args
302299 args = args + (None ,) * (3 - len (args ))
303300 # Try matching impl 0
304- any1_val = None
305301 match_ok = True
306302 if match_ok and args [0 ] is not None :
307303 if not dtypes .is_array_like (args [0 ]):
@@ -338,7 +334,6 @@ def _ARRAY_TO_STRING_SIG(*args):
338334 return dtypes .STRING_DTYPE
339335
340336 # Try matching impl 1
341- any1_val = None
342337 match_ok = True
343338 if match_ok and args [0 ] is not None :
344339 if not dtypes .is_array_like (args [0 ]):
@@ -432,7 +427,6 @@ def _GENERATE_ARRAY_SIG(*args):
432427 # Pad args with None to match max expected args
433428 args = args + (None ,) * (3 - len (args ))
434429 # Try matching impl 0
435- any1_val = None
436430 match_ok = True
437431 if match_ok and args [0 ] is not None :
438432 try :
@@ -456,7 +450,6 @@ def _GENERATE_ARRAY_SIG(*args):
456450 return dtypes .list_type (dtypes .INT_DTYPE )
457451
458452 # Try matching impl 1
459- any1_val = None
460453 match_ok = True
461454 if match_ok and args [0 ] is not None :
462455 try :
@@ -489,7 +482,6 @@ def _GENERATE_ARRAY_SIG(*args):
489482 return dtypes .list_type (dtypes .NUMERIC_DTYPE )
490483
491484 # Try matching impl 2
492- any1_val = None
493485 match_ok = True
494486 if match_ok and args [0 ] is not None :
495487 try :
0 commit comments