Skip to content

Commit dac7d87

Browse files
Fix JobStore.from_file docstring
Fixes a minor typo I stumbled upon in #542.
1 parent 5627622 commit dac7d87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jobflow/core/store.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -547,15 +547,15 @@ def get_output(
547547
@classmethod
548548
def from_file(cls: type[T], db_file: str | Path, **kwargs) -> T:
549549
"""
550-
Create an JobStore from a database file.
550+
Create a JobStore from a database file.
551551
552552
Two options are supported for the database file. The file should be in json or
553553
yaml format.
554554
555555
The simplest format is a monty dumped version of the store, generated using:
556556
557557
>>> from monty.serialization import dumpfn
558-
>>> dumpfn("job_store.yaml", job_store)
558+
>>> dumpfn(job_store, "job_store.yaml")
559559
560560
Alternatively, the file can contain the keys docs_store, additional_stores and
561561
any other keyword arguments supported by the :obj:`JobStore` constructor. The

0 commit comments

Comments
 (0)