From b9e1f71c360f003ff8851e9b6f576cdee1752277 Mon Sep 17 00:00:00 2001 From: konstantin Date: Thu, 23 Feb 2023 14:46:20 +0100 Subject: [PATCH] Add Generic Type Hints to `SourceDataProviderFilter` (#32) --- src/bomf/filter/sourcedataproviderfilter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bomf/filter/sourcedataproviderfilter.py b/src/bomf/filter/sourcedataproviderfilter.py index a96c0f3..cc34db8 100644 --- a/src/bomf/filter/sourcedataproviderfilter.py +++ b/src/bomf/filter/sourcedataproviderfilter.py @@ -22,7 +22,9 @@ def __init__(self, candidate_filter: Filter[Candidate]): self._filter = candidate_filter @overload - async def apply(self, source_data_provider: JsonFileSourceDataProvider) -> SourceDataProvider[Candidate, KeyTyp]: + async def apply( + self, source_data_provider: JsonFileSourceDataProvider[Candidate, KeyTyp] + ) -> SourceDataProvider[Candidate, KeyTyp]: ... @overload