Skip to content

Commit

Permalink
Cleanup bug from refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Jan 28, 2024
1 parent 37166ca commit f24efe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiled/iterviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __getitem__(self, index_or_slice):
direction = 1
items = list(
self._items_slice(
index_or_slice, 1 + index_or_slice, direction, params=self._params
index_or_slice, 1 + index_or_slice, direction, **self._kwargs
)
)
try:
Expand All @@ -109,7 +109,7 @@ def __getitem__(self, index_or_slice):
return item
elif isinstance(index_or_slice, slice):
start, stop, direction = slice_to_interval(index_or_slice)
return list(self._items_slice(start, stop, direction, params=self._params))
return list(self._items_slice(start, stop, direction, **self._kwargs))
else:
raise TypeError(
f"{index_or_slice} must be an int or slice, not {type(index_or_slice)}"
Expand Down

0 comments on commit f24efe1

Please sign in to comment.