Update linting for main code
This commit is contained in:
@@ -20,7 +20,7 @@ General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
"""
|
||||
""" # noqa
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
@@ -42,7 +42,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class NWDocument:
|
||||
"""Core: Document Class
|
||||
"""Core: Document Class.
|
||||
|
||||
A Class wrapping a single novelWriter document file. It represents
|
||||
a project item of nwItemType FILE. The file is not guaranteed to
|
||||
@@ -68,8 +68,6 @@ class NWDocument:
|
||||
if self._handle is not None:
|
||||
self._item = self._project.tree[tHandle]
|
||||
|
||||
return
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"<NWDocument handle={self._handle}>"
|
||||
|
||||
@@ -357,5 +355,3 @@ class NWDocument:
|
||||
|
||||
else:
|
||||
logger.debug("Unknown meta data: '%s'", metaLine.strip())
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user