From cfed62242e93490b8548c79f4ad16bd87de18e3e Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Sun, 23 Jan 2022 10:20:22 +0100 Subject: style: use f-strings where applicable --- docs/ext/docstrings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/ext/docstrings.py') diff --git a/docs/ext/docstrings.py b/docs/ext/docstrings.py index 7fb24f8..4d8d02d 100644 --- a/docs/ext/docstrings.py +++ b/docs/ext/docstrings.py @@ -11,9 +11,9 @@ def classref(value, short=True): return value if not inspect.isclass(value): - return ":class:%s" % value + return f":class:{value}" tilde = "~" if short else "" - return ":class:`%sgitlab.objects.%s`" % (tilde, value.__name__) + return f":class:`{tilde}gitlab.objects.{value.__name__}`" def setup(app): -- cgit v1.2.1