Skip to content

Commit

Permalink
Remove nonlocal definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman committed May 8, 2024
1 parent 27841cf commit 8e7fcd1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dlt/extract/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ def add_limit(self: TDltResourceImpl, max_items: int) -> TDltResourceImpl: # no

def _gen_wrap(gen: TPipeStep) -> TPipeStep:
"""Wrap a generator to take the first `max_items` records"""
nonlocal max_items
# zero items should produce empty generator
if max_items == 0:
return
Expand Down

0 comments on commit 8e7fcd1

Please sign in to comment.