8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e565be commit ea7273aCopy full SHA for ea7273a
tests/test_doctools.py
@@ -8,6 +8,7 @@
8
9
# stdlib
10
import math
11
+import sys
12
from typing import Iterable, NamedTuple, get_type_hints
13
14
# 3rd party
@@ -353,7 +354,16 @@ def demo_function():
353
354
355
return math.pi
356
- assert demo_function.__doc__ == """
357
+ if sys.version_info >= (3, 13):
358
+ assert demo_function.__doc__ == """
359
+This is a docstring that contains references to :class:`str`, :class:`int`, and :class:`float`
360
+but lacks proper references to them when rendered in Sphinx.
361
+
362
+:return: pi
363
+:rtype: float
364
+"""
365
+ else:
366
367
This is a docstring that contains references to :class:`str`, :class:`int`, and :class:`float`
368
but lacks proper references to them when rendered in Sphinx.
369
0 commit comments