File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
# stdlib
10
10
import math
11
+ import sys
11
12
from typing import Iterable , NamedTuple , get_type_hints
12
13
13
14
# 3rd party
@@ -353,7 +354,16 @@ def demo_function():
353
354
354
355
return math .pi
355
356
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
+ assert demo_function .__doc__ == """
357
367
This is a docstring that contains references to :class:`str`, :class:`int`, and :class:`float`
358
368
but lacks proper references to them when rendered in Sphinx.
359
369
You can’t perform that action at this time.
0 commit comments