Skip to content

Commit

Permalink
Updated typing statement
Browse files Browse the repository at this point in the history
  • Loading branch information
NikosDelijohn committed Oct 18, 2024
1 parent 6364561 commit 60306ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/testcrush/grammars/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 60306ef

Please sign in to comment.