Skip to content

Commit 6d3c876

Browse files
committed
Updated docs.
1 parent 34d61b7 commit 6d3c876

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

domdf_python_tools/paths.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -525,12 +525,12 @@ def open( # type: ignore # noqa A003
525525
newline = "\n"
526526

527527
return super().open(
528-
mode,
529-
buffering=buffering,
530-
encoding=encoding,
531-
errors=errors,
532-
newline=newline,
533-
)
528+
mode,
529+
buffering=buffering,
530+
encoding=encoding,
531+
errors=errors,
532+
newline=newline,
533+
)
534534

535535
def dump_json(
536536
self,
@@ -700,7 +700,7 @@ def abspath(self) -> "PathPlus":
700700
701701
:rtype:
702702
703-
.. versionadded:: 1.2.0
703+
.. versionadded:: 1.3.0
704704
"""
705705

706706
return self.__class__(os.path.abspath(self))

domdf_python_tools/words.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,23 @@ def word_join(
542542
return delimiter.join(words[:-1]) + f" {connective} {words[-1]}"
543543

544544

545-
#: A literal ``TAB`` (``\\t``) character for use in f-strings.
546545
TAB = "\t"
546+
"""
547+
A literal ``TAB`` (``\\t``) character for use in f-strings.
548+
549+
.. versionadded:: 1.3.0
550+
"""
547551

548-
#: The carriage return character (``\\r``) for use in f-strings.
549552
CR = "\r"
553+
"""
554+
The carriage return character (``\\r``) for use in f-strings.
555+
556+
.. versionadded:: 1.3.0
557+
"""
550558

551-
#: The newline character (``\\n``) for use in f-strings.
552559
LF = "\r"
560+
"""
561+
The newline character (``\\n``) for use in f-strings.
562+
563+
.. versionadded:: 1.3.0
564+
"""

0 commit comments

Comments
 (0)