From 60306ef03ccaca8c5566bbece139a408d0fb0ff6 Mon Sep 17 00:00:00 2001 From: Nick Deligiannis Date: Fri, 18 Oct 2024 15:31:02 +0300 Subject: [PATCH] Updated typing statement --- src/testcrush/grammars/transformers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/testcrush/grammars/transformers.py b/src/testcrush/grammars/transformers.py index 5bfe0d4..84ba87b 100755 --- a/src/testcrush/grammars/transformers.py +++ b/src/testcrush/grammars/transformers.py @@ -469,7 +469,9 @@ class FaultReportTransformerFactory: "Coverage": (FaultReportCoverageTransformer, _current_directory / "frpt_coverage.lark") } - def __call__(self, section_string: str) -> Union[tuple[FaultReportFaultListTransformer, str]]: + def __call__(self, section_string: str) -> Union[tuple[FaultReportFaultListTransformer, str], + tuple[FaultReportStatusGroupsTransformer, str], + tuple[FaultReportCoverageTransformer, str]]: transformer, grammar = self._transformers.get(section_string, (None, None))