@@ -38,7 +38,7 @@ def fpath(file_path, file_name):
3838
3939 Parameters
4040 ----------
41- file_path : str or None
41+ file_path : Path or str or None
4242 Path to the directory where the file is located.
4343 file_name : str
4444 Name of the file.
@@ -71,7 +71,7 @@ def save_fm(fm, file_name, file_path=None, append=False,
7171 Object to save data from.
7272 file_name : str or FileObject
7373 File to save data to.
74- file_path : str, optional
74+ file_path : Path or str, optional
7575 Path to directory to save to. If None, saves to current directory.
7676 append : bool, optional, default: False
7777 Whether to append to an existing file, if available.
@@ -129,7 +129,7 @@ def save_fg(fg, file_name, file_path=None, append=False,
129129 Object to save data from.
130130 file_name : str or FileObject
131131 File to save data to.
132- file_path : str, optional
132+ file_path : Path or str, optional
133133 Path to directory to load from. If None, loads from current directory.
134134 append : bool, optional, default: False
135135 Whether to append to an existing file, if available.
@@ -175,7 +175,7 @@ def load_json(file_name, file_path):
175175 ----------
176176 file_name : str or FileObject
177177 File to load data from.
178- file_path : str
178+ file_path : Path or str
179179 Path to directory to load from.
180180
181181 Returns
@@ -204,7 +204,7 @@ def load_jsonlines(file_name, file_path):
204204 ----------
205205 file_name : str
206206 File to load data from.
207- file_path : str
207+ file_path : Path or str
208208 Path to directory from load from.
209209
210210 Yields
0 commit comments