diff --git a/CHANGELOG.md b/CHANGELOG.md index f396665..734bbed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -130,6 +130,3 @@ Bug Fixes ## [v1.4](https://github.com/PyCQA/docformatter/tree/v1.4) (2020-12-27) [Full Changelog](https://github.com/PyCQA/docformatter/compare/v1.3.1...v1.4) - - - diff --git a/src/docformatter/classify.py b/src/docformatter/classify.py index 9b8b553..61a94e6 100644 --- a/src/docformatter/classify.py +++ b/src/docformatter/classify.py @@ -478,10 +478,10 @@ def is_newline_continuation( def _is_blank_line(line: str) -> bool: - """Determine if a physical line is blank. + r"""Determine if a physical line is blank. A blank line is a non-empty line that holds nothing but whitespace, e.g. - "\\n" or " \\n". The empty string is *not* a blank line; tokenize uses + "\n" or " \n". The empty string is *not* a blank line; tokenize uses it as the line of the NEWLINE token it synthesizes for source that has no trailing newline, as well as for DEDENT and ENDMARKER tokens. diff --git a/src/docformatter/configuration.py b/src/docformatter/configuration.py index 3fe45ee..7fafa98 100644 --- a/src/docformatter/configuration.py +++ b/src/docformatter/configuration.py @@ -43,7 +43,7 @@ except ImportError: # Neither the stdlib tomllib (Python < 3.11) nor the tomli backport is # available; TOML configuration files are skipped in that case. See #368. - tomllib = None + tomllib = None # type: ignore[assignment] # docformatter Package Imports from docformatter import __pkginfo__