Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
steinitzu committed Feb 23, 2024
1 parent b7acf93 commit 0882987
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dlt/extract/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,10 @@ def parallelize(self) -> "DltResource":
"""
if (
not inspect.isgenerator(self._pipe.gen)
and not inspect.isgeneratorfunction(inspect.unwrap(self._pipe.gen))
and not (
callable(self._pipe.gen)
and inspect.isgeneratorfunction(inspect.unwrap(self._pipe.gen))
)
and not (callable(self._pipe.gen) and self.is_transformer)
):
raise InvalidParallelResourceDataType(self.name, self._pipe.gen, type(self._pipe.gen))
Expand Down

0 comments on commit 0882987

Please sign in to comment.