Skip to content

Commit

Permalink
Fix Whitespace before opening parenthesis (FLK-E211)
Browse files Browse the repository at this point in the history
  • Loading branch information
garlontas committed Jul 18, 2023
1 parent 7aa3775 commit e0fd0ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pystreamapi/_streams/__parallel_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ def process_element(element):

@terminal
def for_each(self, action: Callable):
Parallel(n_jobs=-1, prefer="threads", handler=self)\
(delayed(self.__mapper(action))(element) for element in self._source)
Parallel(n_jobs=-1, prefer="threads", handler=self)(
delayed(self.__mapper(action))(element) for element in self._source
)

def _map(self, mapper: Callable[[Any], Any]):
self._source = Parallel(n_jobs=-1, prefer="threads", handler=self)(
Expand Down

0 comments on commit e0fd0ab

Please sign in to comment.