I have a Python file, example.py which ends with a newline:
adam@Adams-MacBook-Pro ~/D/r/vws-python (docformatter-debug)> cat example.py
class A:
"""
Hello.
"""
adam@Adams-MacBook-Pro ~/D/r/vws-python (docformatter-debug)>
docformatter on master (and not in 1.7.7) adds an extra newline to the end of the file.
This happens since #318.
This matters to me as I wish to use Python 3.14 and only recent commits of docformatter are installable with 3.14.