Skip to content

Commit 09722ac

Browse files
FichteFollpgjones
authored andcommitted
Fix examples of Config classmethods
1 parent d0fdb8e commit 09722ac

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docs/how_to_guides/configuring.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ be used,
2424

2525
.. code-block:: python
2626
27-
config = Config()
28-
config.from_toml("file_path/file_name.toml")
27+
config = Config.from_toml("file_path/file_name.toml")
2928
3029
Via a Python module
3130
-------------------
@@ -45,8 +44,7 @@ can be used,
4544

4645
.. code-block:: python
4746
48-
config = Config()
49-
config.from_object("module_name.instance")
47+
config = Config.from_object("module_name.instance")
5048
5149
Via a Python file
5250
-------------------
@@ -65,8 +63,7 @@ can be used,
6563

6664
.. code-block:: python
6765
68-
config = Config()
69-
config.from_pyfile("file_path/file_name.py")
66+
config = Config.from_pyfile("file_path/file_name.py")
7067
7168
Configuration options
7269
=====================

0 commit comments

Comments
 (0)