Skip to content

Commit

Permalink
Simplify some redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Dec 9, 2020
1 parent 30c17ff commit 046ecb1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,7 @@ This can be done by manually specifying the YAML files you want to include:
# they will be overwritten (new file precedes the previous ones)
config.set_file('subdirectory/local_config.yaml')
# Fetch the value
foo_bar_value = config['foo']['bar'].get()
# Fetch the value of specific type, exception will be raised if type doesn't match
foo_bar_int_value = config['foo']['bar'].get(int)
val = config['foo']['bar'].get(int)
Your Application Directory
Expand Down

0 comments on commit 046ecb1

Please sign in to comment.