def to_file(self, pipfile: Pipfile = None) -> None:
with open("<STR_LIT>", "<STR_LIT:w>") as pipfile_lock:<EOL><INDENT>pipfile_lock.write(self.to_string(pipfile))<EOL><DEDENT>
Convert the current state of PipfileLock to actual Pipfile.lock file stored in CWD.