Skip to content

Commit

Permalink
Update docs with missing import for open_dict (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoEmili committed Oct 28, 2021
1 parent dc744d8 commit 7f1efc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ You can temporarily remove the struct flag from a config object:

.. doctest:: loaded

>>> from omegaconf import open_dict
>>> conf = OmegaConf.create({"a": {"aa": 10, "bb": 20}})
>>> OmegaConf.set_struct(conf, True)
>>> with open_dict(conf):
Expand Down

0 comments on commit 7f1efc1

Please sign in to comment.