summaryrefslogtreecommitdiff
path: root/docs/ext/docstrings.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ext/docstrings.py')
-rw-r--r--docs/ext/docstrings.py4
1 files changed, 2 insertions, 2 deletions
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):