Skip to content

Commit

Permalink
get() in MultiSelectorConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Sordoni committed Nov 10, 2024
1 parent 96c2fb8 commit 9639686
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mttl/models/containers/selectors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ def __len__(self):
def __getitem__(self, key):
return self.selectors[key]

def get(self, key):
return self.selectors.get(key, default=TaskNameSelectorConfig())

def keys(self):
return self.selectors.keys()

Expand Down

0 comments on commit 9639686

Please sign in to comment.