Skip to content

Commit

Permalink
Issue #287
Browse files Browse the repository at this point in the history
  • Loading branch information
loyada committed Aug 16, 2024
1 parent e2c89a2 commit fea04ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typedpy/commons.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ def _get_next_level(
return res
return default

if default is None and enable_undefined:
default = Undefined
keys = deep_key.split(".")
if not dictionary:
return Undefined if enable_undefined else None
result = reduce(
lambda d, key: _get_next_level(
d, key, default, enable_undefined=enable_undefined
Expand Down

0 comments on commit fea04ae

Please sign in to comment.