Skip to content

Commit cd8ac75

Browse files
committed
Sphinx is confused with :: at the end of a comment line
1 parent c6f5a4b commit cd8ac75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sage_docbuild/ext/sage_autodoc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,12 @@ def getdoc(obj, *args, **kwargs):
9090
# here in most Python versions
9191
MethodDescriptorType = type(type.__subclasses__)
9292

93+
# ------------------------------------------------------------------------
94+
# As of Sphinx 7.2.6, Sphinx is confused with unquoted "::" in the comment
95+
# below.
96+
# ------------------------------------------------------------------------
9397

94-
#: extended signature RE: with explicit module name separated by ::
98+
#: extended signature RE: with explicit module name separated by "::"
9599
py_ext_sig_re = re.compile(
96100
r'''^ ([\w.]+::)? # explicit module name
97101
([\w.]+\.)? # module and/or class name(s)

0 commit comments

Comments
 (0)