Skip to content

Commit

Permalink
Edit docs, edit parameter in pop in __setitem__
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeniyS99 committed Aug 18, 2023
1 parent e67d85e commit 7695c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions batchflow/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _get(self, key, pop=False, **kwargs):
Examples
--------
>>> config = Config({'a': {'b': {'c': 30}}})
config.get('a/b')
>>> config.get('a/b')
{'c': 30}
Explaining:
Expand Down Expand Up @@ -301,7 +301,7 @@ def __getitem__(self, key):
return value

def __setitem__(self, key, value):
_ = self.pop(key, None)
self.pop(key)
self.put(key, value)

def __delitem__(self, key):
Expand Down

0 comments on commit 7695c42

Please sign in to comment.