Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
aabmass committed Jun 2, 2020
1 parent da22b91 commit 2254970
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def __setattr__(self, key: str, val: ConfigValue) -> None:
raise AttributeError(key)

def get(self, name: str, default: _T) -> _T:
"""Use this typed method for dynamic access instead of `getattr()`"""
val = self._config_map.get(name, default)
return val

Expand Down

0 comments on commit 2254970

Please sign in to comment.