summaryrefslogtreecommitdiff
path: root/robusta_krr/formatters/table.py
diff options
context:
space:
mode:
Diffstat (limited to 'robusta_krr/formatters/table.py')
-rw-r--r--robusta_krr/formatters/table.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/robusta_krr/formatters/table.py b/robusta_krr/formatters/table.py
index fdc9508..8ea2003 100644
--- a/robusta_krr/formatters/table.py
+++ b/robusta_krr/formatters/table.py
@@ -1,6 +1,7 @@
from __future__ import annotations
import itertools
+from typing import Optional
from rich.table import Table
@@ -20,7 +21,7 @@ class TableFormatter(BaseFormatter):
__display_name__ = "table"
- def _format_united_decimal(self, value: RecommendationValue, prescision: int | None = None) -> str:
+ def _format_united_decimal(self, value: RecommendationValue, prescision: Optional[int] = None) -> str:
if value is None:
return NONE_LITERAL
elif isinstance(value, str):