@@ -61,7 +61,7 @@ def append(var: str, filename: PathLike, **kwargs) -> int:
61
61
62
62
This is currently untested
63
63
64
- TODO: make this the file in the given directory, by default the current directory
64
+ .. TODO: : make this the file in the given directory, by default the current directory
65
65
66
66
:param var: The value to append to the file
67
67
:param filename: The file to append to
@@ -119,7 +119,7 @@ def delete(filename: PathLike, **kwargs):
119
119
120
120
This is currently untested
121
121
122
- TODO: make this the file in the given directory, by default the current directory
122
+ .. TODO: : make this the file in the given directory, by default the current directory
123
123
124
124
:param filename: The file to delete
125
125
"""
@@ -175,16 +175,14 @@ def read(filename: PathLike, **kwargs) -> str:
175
175
176
176
This is currently untested
177
177
178
- TODO: make this the file in the given directory, by default the current directory
178
+ .. TODO: : make this the file in the given directory, by default the current directory
179
179
180
180
:param filename: The file to read from
181
181
182
182
:return: The contents of the file
183
183
:rtype: str
184
184
"""
185
185
186
- # TODO: docstring
187
-
188
186
with open (os .path .join (os .getcwd (), filename ), ** kwargs ) as f :
189
187
return f .read ()
190
188
@@ -227,7 +225,7 @@ def write(var: str, filename: PathLike, **kwargs) -> None:
227
225
"""
228
226
Write a variable to file in the current directory.
229
227
230
- TODO: make this the file in the given directory, by default the current directory
228
+ .. TODO: : make this the file in the given directory, by default the current directory
231
229
232
230
:param var: The value to write to the file
233
231
:param filename: The file to write to
0 commit comments