Skip to content

Commit 1a56652

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7c4acf8 commit 1a56652

5 files changed

Lines changed: 5 additions & 9 deletions

File tree

domdf_python_tools/doctools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ def sphinxify_docstring() -> Callable[[_F], _F]:
216216
.. code-block:: python
217217
218218
intersphinx_mapping = {
219-
"python": ("https://docs.python.org/3/", None),
220-
}
219+
"python": ("https://docs.python.org/3/", None),
220+
}
221221
"""
222222

223223
def wrapper(target: _F) -> _F:

domdf_python_tools/paths.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ def maybe_make(directory: PathLike, mode: int = 0o777, parents: bool = False):
234234
:no-default parents:
235235
236236
.. versionchanged:: 1.6.0 Removed the ``'exist_ok'`` option, since it made no sense in this context.
237-
238237
"""
239238

240239
if not isinstance(directory, pathlib.Path):
@@ -455,7 +454,6 @@ def maybe_make(
455454
456455
This will fail silently if a file with the same name already exists.
457456
This appears to be due to the behaviour of :func:`os.mkdir`.
458-
459457
"""
460458

461459
try:

domdf_python_tools/stringlist.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def with_indent(self, indent: Union[String, Indent], size: int = 0):
405405
406406
>>> sl = StringList()
407407
>>> with sl.with_indent(" ", 1):
408-
... sl.append("Hello World")
408+
... sl.append("Hello World")
409409
410410
:param indent: The :class:`~.Indent` to use within the ``with`` block, or the indent type.
411411
:param size: If ``indent`` is an indent type, the indent size to use within the ``with`` block.
@@ -428,7 +428,7 @@ def with_indent_size(self, size: int = 0):
428428
429429
>>> sl = StringList()
430430
>>> with sl.with_indent_size(1):
431-
... sl.append("Hello World")
431+
... sl.append("Hello World")
432432
433433
:param size: The indent size to use within the ``with`` block.
434434
"""
@@ -450,7 +450,7 @@ def with_indent_type(self, indent_type: str = '\t'):
450450
451451
>>> sl = StringList()
452452
>>> with sl.with_indent_type(" "):
453-
... sl.append("Hello World")
453+
... sl.append("Hello World")
454454
455455
:param indent_type: The type of indent to use within the ``with`` block.
456456
"""

domdf_python_tools/terminal.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def interrupt() -> None:
118118
119119
>>> interrupt()
120120
(Press Ctrl-C to quit at any time)
121-
122121
"""
123122

124123
print(f"(Press Ctrl-{'C' if os.name == 'nt' else 'D'} to quit at any time)")

domdf_python_tools/words.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,6 @@ class PluralPhrase(NamedTuple):
673673
'The farmer has 2 cows.'
674674
675675
.. _valid syntax: https://docs.python.org/3/library/string.html#formatstrings
676-
677676
"""
678677

679678
template: str

0 commit comments

Comments
 (0)