From 3bbb68b462505a05f95071f858aee60ab1ba5338 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Thu, 7 Sep 2023 15:39:57 +0200 Subject: [PATCH] linter --- papyri/crosslink.py | 4 +--- papyri/gen.py | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/papyri/crosslink.py b/papyri/crosslink.py index 1d62ba96..e9753039 100644 --- a/papyri/crosslink.py +++ b/papyri/crosslink.py @@ -431,9 +431,7 @@ def relink(self) -> None: rev_aliases = {Cannonical(v): FullQual(k) for k, v in aliases.items()} - print( - "Relinking is safe to cancel, but some back references may be broken...." - ) + print("Relinking is safe to cancel, but some back references may be broken....") print("Press Ctrl-C to abort...") for _, key in self.progress( diff --git a/papyri/gen.py b/papyri/gen.py index c5177445..e411bc12 100644 --- a/papyri/gen.py +++ b/papyri/gen.py @@ -32,6 +32,7 @@ from typing import Any, Dict, FrozenSet, List, MutableMapping, Optional, Sequence, Tuple import jedi + try: import tomllib except ModuleNotFoundError: @@ -2090,7 +2091,8 @@ def collect_api_docs(self, root: str, limit_to: List[str]): self.put_raw(name, data) if error_collector._errors: self.log.info( - "ERRORS:" + tomli_w.dumps(error_collector._errors).replace(",", ", \n") + "ERRORS:" + + tomli_w.dumps(error_collector._errors).replace(",", ", \n") ) if error_collector._expected_unseen: self.log.info(