(self, json_path_or_dict: Union[str, dict])
Instantiating Config class

        Args:
            json_path_or_dict (Union[str, dict]): filepath of config or dictionary which has attributes
Instantiating Config class
Instantiating Config class
def __init__(self, json_path_or_dict: Union[str, dict]) -> None:
        """Instantiating Config class

        Args:
            json_path_or_dict (Union[str, dict]): filepath of config or dictionary which has attributes
        """
        if isinstance(json_path_or_dict, dict):
            self.__dict__.update(json_path_or_dict)
        else:
            with open(json_path_or_dict, mode="r") as io:
                params = json.loads(io.read())
            self.__dict__.update(params)
def __init__ ( self , json_path_or_dict : Union [ str , dict ] ) -> None : if isinstance ( json_path_or_dict , dict ) : self . __dict__ . update ( json_path_or_dict ) else : with open ( json_path_or_dict , mode = "r" ) as io : params = json . loads ( io . read ( ) ) self . __dict__ . update ( params )