@classmethod<EOL><INDENT>def from_dict(cls, dict_: dict):<DEDENT>
_LOGGER.debug("<STR_LIT>")<EOL>dict_ = dict(dict_)<EOL>if "<STR_LIT>" in dict_:<EOL><INDENT>dict_["<STR_LIT:source>"] = dict_.pop("<STR_LIT>")<EOL><DEDENT>if "<STR_LIT:source>" not in dict_:<EOL><INDENT>dict_["<STR_LIT:source>"] = []<EOL><DEDENT>sources = {d["<STR_LIT:name>"]: Source.from_dict(d) for d in dict_.pop("<STR_LIT:source>")}<EOL>requires = dict_.pop("<STR_LIT>", {})<EOL>pipenv = dict_.pop("<STR_LIT>", None)<EOL>pipfile_spec = dict_.pop("<STR_LIT>", None)<EOL>hash_ = dict_.pop("<STR_LIT>", None)<EOL>if dict_:<EOL><INDENT>_LOGGER.warning("<STR_LIT>", dict_)<EOL><DEDENT>return cls(sources=sources, requires=requires, pipenv=pipenv, hash=hash_, pipfile_spec=pipfile_spec)<EOL>
Parse sources from dict as stated in Pipfile/Pipfile.lock.