From 9369ce718dafe216e9311cc54591e8fc08744701 Mon Sep 17 00:00:00 2001 From: Roberto Godinho Date: Wed, 20 Dec 2023 12:14:40 -0300 Subject: [PATCH] Update __init__.py REFACTORY: python 3.8 e 3.9 compatibility, remove unsupported operator --- pynfe/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynfe/utils/__init__.py b/pynfe/utils/__init__.py index 6dda934..4fd75fc 100644 --- a/pynfe/utils/__init__.py +++ b/pynfe/utils/__init__.py @@ -222,7 +222,7 @@ def arredondar_valor(value: float, decimal_places: int, suprimir_zeros: bool = F def ajustar_valor( - value: float | None, decimal_places: int = 2, min_decimal_places: int = 2, tipo: Literal["ROUND", "TRUNC"] = "ROUND", decimal_separator: str = "." + value: float, decimal_places: int = 2, min_decimal_places: int = 2, tipo: Literal["ROUND", "TRUNC"] = "ROUND", decimal_separator: str = "." ): value = 0 if value is None else value