From 70369f3789ea68f0b6bde7c05a4e475c4c32de7c Mon Sep 17 00:00:00 2001 From: guacs Date: Mon, 13 Nov 2023 12:05:34 +0530 Subject: [PATCH] fix: remove 'ValueError' from return union for 'wrap_constant' --- pypika/terms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypika/terms.py b/pypika/terms.py index b25af5c5..5595e13a 100644 --- a/pypika/terms.py +++ b/pypika/terms.py @@ -59,7 +59,7 @@ def fields_(self) -> Set["Field"]: @staticmethod def wrap_constant( val, wrapper_cls: Optional[Type["Term"]] = None - ) -> Union[ValueError, NodeT, "LiteralValue", "Array", "Tuple", "ValueWrapper"]: + ) -> Union[NodeT, "LiteralValue", "Array", "Tuple", "ValueWrapper"]: """ Used for wrapping raw inputs such as numbers in Criterions and Operator.