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 88
99# stdlib
1010import math
11+ import sys
1112from typing import Iterable , NamedTuple , get_type_hints
1213
1314# 3rd party
@@ -353,7 +354,16 @@ def demo_function():
353354
354355 return math .pi
355356
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__ == """
357367 This is a docstring that contains references to :class:`str`, :class:`int`, and :class:`float`
358368 but lacks proper references to them when rendered in Sphinx.
359369
You can’t perform that action at this time.
0 commit comments