@@ -116,7 +116,6 @@ def copytree(
116
116
the copy process. You can set the optional ignore_dangling_symlinks
117
117
flag to true if you want to silence this exception. Notice that this
118
118
option has no effect on platforms that don’t support :class:`python:os.symlink`.
119
- :type symlinks: bool, optional
120
119
:param ignore: A callable that will receive as its arguments the source
121
120
directory, and a list of its contents. The ignore callable will be
122
121
called once for each directory that is copied. The callable must return
@@ -162,18 +161,15 @@ def maybe_make(directory: PathLike, mode: int = 0o777, parents: bool = False, ex
162
161
163
162
:param directory: Directory to create
164
163
:param mode: Combined with the process’ umask value to determine the file mode and access flags
165
- :type mode:
166
164
:param parents: If :py:obj:`False` (the default), a missing parent raises a :class:`~python:FileNotFoundError`.
167
165
If :py:obj:`True`, any missing parents of this path are created as needed; they are created with the
168
166
default permissions without taking mode into account (mimicking the POSIX mkdir -p command).
169
167
:no-default parents:
170
- :type parents: bool, optional
171
168
:param exist_ok: If :py:obj:`False` (the default), a :class:`~python:FileExistsError` is raised if the
172
169
target directory already exists. If :py:obj:`True`, :class:`~python:FileExistsError` exceptions
173
170
will be ignored (same behavior as the POSIX mkdir -p command), but only if the last path
174
171
component is not an existing non-directory file.
175
172
:no-default exist_ok:
176
- :type exist_ok: bool, optional
177
173
"""
178
174
179
175
if not isinstance (directory , pathlib .Path ):
@@ -383,13 +379,11 @@ def maybe_make(
383
379
If :py:obj:`True`, any missing parents of this path are created as needed; they are created with the
384
380
default permissions without taking mode into account (mimicking the POSIX mkdir -p command).
385
381
:no-default parents:
386
- :type parents: bool, optional
387
382
:param exist_ok: If :py:obj:`False` (the default), a :class:`~python:FileExistsError` is raised if the
388
383
target directory already exists. If :py:obj:`True`, :class:`~python:FileExistsError` exceptions
389
384
will be ignored (same behavior as the POSIX mkdir -p command), but only if the last path
390
385
component is not an existing non-directory file.
391
386
:no-default exist_ok:
392
- :type exist_ok: bool, optional
393
387
394
388
:rtype:
395
389
@@ -450,7 +444,6 @@ def write_lines(
450
444
and close the file.
451
445
452
446
:param data:
453
- :type data: str
454
447
:param encoding: The encoding to write to the file using.
455
448
:param errors:
456
449
0 commit comments