@@ -307,10 +307,12 @@ def __new__(cls, *args, **kwargs):
307
307
self ._init ()
308
308
return self
309
309
310
- def make_executable (self ):
310
+ def make_executable (self ) -> None :
311
311
"""
312
312
Make the file executable.
313
313
314
+ :rtype:
315
+
314
316
.. versionadded:: 0.3.8
315
317
"""
316
318
@@ -329,6 +331,8 @@ def write_clean(
329
331
:param encoding: The encoding to write to the file using.
330
332
:param errors:
331
333
334
+ :rtype:
335
+
332
336
.. versionadded:: 0.3.8
333
337
"""
334
338
@@ -350,7 +354,6 @@ def maybe_make(
350
354
This appears to be due to the behaviour of :func:`os.mkdir`.
351
355
352
356
:param mode: Combined with the process’ umask value to determine the file mode and access flags
353
- :type mode:
354
357
:param parents: If :py:obj:`False` (the default), a missing parent raises a :class:`~python:FileNotFoundError`.
355
358
If :py:obj:`True`, any missing parents of this path are created as needed; they are created with the
356
359
default permissions without taking mode into account (mimicking the POSIX mkdir -p command).
@@ -363,6 +366,8 @@ def maybe_make(
363
366
:no-default exist_ok:
364
367
:type exist_ok: bool, optional
365
368
369
+ :rtype:
370
+
366
371
.. versionadded:: 0.3.8
367
372
"""
368
373
@@ -378,10 +383,11 @@ def append_text(
378
383
Open the file in text mode, append the given string to it, and close the file.
379
384
380
385
:param string:
381
- :type string: str
382
386
:param encoding: The encoding to write to the file using.
383
387
:param errors:
384
388
389
+ :rtype:
390
+
385
391
.. versionadded:: 0.3.8
386
392
"""
387
393
@@ -398,10 +404,11 @@ def write_text(
398
404
Open the file in text mode, write to it, and close the file.
399
405
400
406
:param data:
401
- :type data: str
402
407
:param encoding: The encoding to write to the file using.
403
408
:param errors:
404
409
410
+ :rtype:
411
+
405
412
.. versionadded:: 0.3.8
406
413
"""
407
414
0 commit comments