Skip to content

Commit

Permalink
Remove redundant item validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Dec 4, 2023
1 parent 3c6b250 commit 5cc73e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traits/trait_list_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def insert(self, index, object):
else:
normalized_index = min(index, len(self))
object = self.item_validator(object)
super().insert(index, self.item_validator(object))
super().insert(index, object)
self.notify(normalized_index, [], [object])

def pop(self, index=-1):
Expand Down

0 comments on commit 5cc73e6

Please sign in to comment.