File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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=====================
You can’t perform that action at this time.
0 commit comments