@@ -137,11 +137,13 @@ def maybe_make(directory: PathLike, mode: int = 0o777, parents: bool = False, ex
137137 :param parents: If :py:obj:`False` (the default), a missing parent raises a :class:`~python:FileNotFoundError`.
138138 If :py:obj:`True`, any missing parents of this path are created as needed; they are created with the
139139 default permissions without taking mode into account (mimicking the POSIX mkdir -p command).
140+ :no-default parents:
140141 :type parents: bool, optional
141142 :param exist_ok: If :py:obj:`False` (the default), a :class:`~python:FileExistsError` is raised if the
142143 target directory already exists. If :py:obj:`True`, :class:`~python:FileExistsError` exceptions
143144 will be ignored (same behavior as the POSIX mkdir -p command), but only if the last path
144145 component is not an existing non-directory file.
146+ :no-default exist_ok:
145147 :type exist_ok: bool, optional
146148 """
147149
@@ -194,7 +196,8 @@ def relpath(path: PathLike, relative_to: Optional[PathLike] = None) -> pathlib.P
194196
195197 :param path: Path to find the relative path for
196198 :param relative_to: The directory to find the path relative to.
197- Defaults to the current directory
199+ Defaults to the current directory.
200+ :no-default relative_to:
198201
199202 :return:
200203 """
@@ -312,8 +315,7 @@ def write_clean(
312315 Open the file in text mode, write to it without trailing spaces, and close the file.
313316
314317 :param string:
315- :type string: str
316- :param encoding: The encoding to write to the file using. Default ``"UTF-8"``.
318+ :param encoding: The encoding to write to the file using.
317319 :param errors:
318320
319321 .. versionadded:: 0.3.8
@@ -336,11 +338,13 @@ def maybe_make(
336338 :param parents: If :py:obj:`False` (the default), a missing parent raises a :class:`~python:FileNotFoundError`.
337339 If :py:obj:`True`, any missing parents of this path are created as needed; they are created with the
338340 default permissions without taking mode into account (mimicking the POSIX mkdir -p command).
341+ :no-default parents:
339342 :type parents: bool, optional
340343 :param exist_ok: If :py:obj:`False` (the default), a :class:`~python:FileExistsError` is raised if the
341344 target directory already exists. If :py:obj:`True`, :class:`~python:FileExistsError` exceptions
342345 will be ignored (same behavior as the POSIX mkdir -p command), but only if the last path
343346 component is not an existing non-directory file.
347+ :no-default exist_ok:
344348 :type exist_ok: bool, optional
345349
346350 .. versionadded:: 0.3.8
@@ -359,7 +363,7 @@ def append_text(
359363
360364 :param string:
361365 :type string: str
362- :param encoding: The encoding to write to the file using. Default ``"UTF-8"``.
366+ :param encoding: The encoding to write to the file using.
363367 :param errors:
364368
365369 .. versionadded:: 0.3.8
@@ -379,7 +383,7 @@ def write_text(
379383
380384 :param data:
381385 :type data: str
382- :param encoding: The encoding to write to the file using. Default ``"UTF-8"``.
386+ :param encoding: The encoding to write to the file using.
383387 :param errors:
384388
385389 .. versionadded:: 0.3.8
@@ -395,7 +399,7 @@ def read_text(
395399 """
396400 Open the file in text mode, read it, and close the file.
397401
398- :param encoding: The encoding to write to the file using. Default ``"UTF-8"``.
402+ :param encoding: The encoding to write to the file using.
399403 :param errors:
400404
401405 :return: The content of the file.
@@ -417,7 +421,8 @@ def open(
417421 Open the file pointed by this path and return a file object, as
418422 the built-in open() function does.
419423
420- :param mode: The mode to open the file in. Default ``"r"`` (read only.
424+ :param mode: The mode to open the file in.
425+ :default mode: ``"r"`` (read only)
421426 :type mode: str
422427 :param buffering:
423428 :type buffering: int
0 commit comments