From f492ebac5a1d733cdaf98eb176d709d19c4e9397 Mon Sep 17 00:00:00 2001 From: alifeee Date: Tue, 31 Oct 2023 12:15:58 +0000 Subject: [PATCH] make default_blank type `Any` --- gspread/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gspread/utils.py b/gspread/utils.py index 45453a3a1..56b677e6d 100644 --- a/gspread/utils.py +++ b/gspread/utils.py @@ -160,7 +160,7 @@ def finditem(func: Callable[[T], bool], seq: Iterable[T]) -> T: def numericise( value: Optional[AnyStr], empty2zero: bool = False, - default_blank: Optional[AnyStr] = "", + default_blank: Any = "", allow_underscores_in_numeric_literals: bool = False, ) -> Optional[Union[int, float, AnyStr]]: """Returns a value that depends on the input: @@ -235,7 +235,7 @@ def numericise( def numericise_all( values: List[Optional[AnyStr]], empty2zero: bool = False, - default_blank: Optional[AnyStr] = "", + default_blank: Any = "", allow_underscores_in_numeric_literals: bool = False, ignore: List[int] = [], ) -> List[Optional[Union[int, float, AnyStr]]]: