Skip to content

Commit

Permalink
Remove redundant keyCheck from validate; already handled upon assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
enourbakhsh committed Dec 11, 2024
1 parent 349df56 commit ce0f96c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/lsst/pex/config/configDictField.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,6 @@ def validate(self, instance):
value = self.__get__(instance)
if value is not None:
for k in value:
if self.keyCheck is not None and not self.keyCheck(k):
msg = f"Key {k!r} is not a valid key"
raise FieldValidationError(self, instance, msg)
item = value[k]
item.validate()
if self.itemCheck is not None and not self.itemCheck(item):
Expand Down

0 comments on commit ce0f96c

Please sign in to comment.