Skip to content

Commit 61aa69d

Browse files
committed
Use f-string to please Pylint
1 parent e814b7d commit 61aa69d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: .pylintrc

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ disable =
1818
too-many-instance-attributes,
1919
import-error,
2020
consider-using-f-string,
21+
logging-fstring-interpolation
2122

2223
[REPORTS]
2324

Diff for: pylsp/plugins/_resolvers.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ def resolve(self, completion):
8282
return self.callback(completion, sig)
8383
except Exception as e: # pylint: disable=broad-except
8484
log.warning(
85-
'Something went wrong when resolving label for {completion}: {e}'.format(
86-
completion=completion, e=e
87-
),
85+
log.warning(f'Something went wrong when resolving label for {completion}: {e}')
8886
)
8987
return self.resolve_on_error
9088

0 commit comments

Comments
 (0)