Skip to content

Commit

Permalink
Fix docstring of Config (open-mmlab#1506)
Browse files Browse the repository at this point in the history
  • Loading branch information
MambaWong authored Feb 24, 2024
1 parent 9b98405 commit c423d0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mmengine/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ def fromfile(filename: Union[str, Path],
predefined variables. Defaults to True.
import_custom_modules (bool, optional): Whether to support
importing custom modules in config. Defaults to None.
use_environment_variables (bool, optional): Whether to use
environment variables. Defaults to True.
lazy_import (bool): Whether to load config in `lazy_import` mode.
If it is `None`, it will be deduced by the content of the
config file. Defaults to None.
Expand Down Expand Up @@ -831,6 +833,8 @@ def _file2dict(
filename (str): Name of config file.
use_predefined_variables (bool, optional): Whether to use
predefined variables. Defaults to True.
use_environment_variables (bool, optional): Whether to use
environment variables. Defaults to True.
lazy_import (bool): Whether to load config in `lazy_import` mode.
If it is `None`, it will be deduced by the content of the
config file. Defaults to None.
Expand Down

0 comments on commit c423d0c

Please sign in to comment.