Skip to content

Commit b32d4b5

Browse files
committed
Merge branch '4.x'
2 parents 4c62323 + cda2663 commit b32d4b5

File tree

32 files changed

+141
-69
lines changed

32 files changed

+141
-69
lines changed

CHANGES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ Bugs fixed
8585
* #9755: autodoc: memory addresses are shown for aliases
8686
* #9752: autodoc: Failed to detect type annotation for slots attribute
8787
* #9756: autodoc: Crashed if classmethod does not have __func__ attribute
88+
* #9757: autodoc: :confval:`autodoc_inherit_docstrings` does not effect to
89+
overriden classmethods
8890
* #9630: autosummary: Failed to build summary table if :confval:`primary_domain`
8991
is not 'py'
9092
* #9670: html: Fix download file with special characters
@@ -97,8 +99,12 @@ Bugs fixed
9799
* #9678: linkcheck: file extension was shown twice in warnings
98100
* #9697: py domain: An index entry with parens was registered for ``py:method``
99101
directive with ``:property:`` option
102+
* #9775: py domain: Literal typehint was converted to a cross reference when
103+
:confval:`autodoc_typehints='description'`
100104
* #9708: needs_extension failed to check double-digit version correctly
101105
* #9688: Fix :rst:dir:`code`` does not recognize ``:class:`` option
106+
* #9733: Fix for logging handler flushing warnings in the middle of the docs
107+
build
102108

103109
Testing
104110
--------

sphinx/domains/python.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,17 +353,21 @@ def make_xrefs(self, rolename: str, domain: str, target: str,
353353

354354
split_contnode = bool(contnode and contnode.astext() == target)
355355

356+
in_literal = False
356357
results = []
357358
for sub_target in filter(None, sub_targets):
358359
if split_contnode:
359360
contnode = nodes.Text(sub_target)
360361

361-
if delims_re.match(sub_target):
362+
if in_literal or delims_re.match(sub_target):
362363
results.append(contnode or innernode(sub_target, sub_target))
363364
else:
364365
results.append(self.make_xref(rolename, domain, sub_target,
365366
innernode, contnode, env, inliner, location))
366367

368+
if sub_target in ('Literal', 'typing.Literal'):
369+
in_literal = True
370+
367371
return results
368372

369373

0 Bytes
Binary file not shown.

sphinx/locale/ca/LC_MESSAGES/sphinx.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Sphinx\n"
1010
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
11-
"POT-Creation-Date: 2021-10-25 16:47+0000\n"
11+
"POT-Creation-Date: 2021-10-31 00:10+0000\n"
1212
"PO-Revision-Date: 2021-10-10 00:10+0000\n"
1313
"Last-Translator: Komiya Takeshi <[email protected]>\n"
1414
"Language-Team: Catalan (http://www.transifex.com/sphinx-doc/sphinx-1/language/ca/)\n"
@@ -2867,7 +2867,7 @@ msgid ""
28672867
msgstr ""
28682868

28692869
#: sphinx/ext/autodoc/__init__.py:1304 sphinx/ext/autodoc/__init__.py:1378
2870-
#: sphinx/ext/autodoc/__init__.py:2735
2870+
#: sphinx/ext/autodoc/__init__.py:2743
28712871
#, python-format
28722872
msgid "Failed to get a function signature for %s: %s"
28732873
msgstr ""
@@ -2898,12 +2898,12 @@ msgstr ""
28982898
msgid "Failed to get a method signature for %s: %s"
28992899
msgstr ""
29002900

2901-
#: sphinx/ext/autodoc/__init__.py:2349
2901+
#: sphinx/ext/autodoc/__init__.py:2348
29022902
#, python-format
29032903
msgid "Invalid __slots__ found on %s. Ignored."
29042904
msgstr ""
29052905

2906-
#: sphinx/ext/autodoc/__init__.py:2778
2906+
#: sphinx/ext/autodoc/__init__.py:2786
29072907
msgid ""
29082908
"autodoc_member_order now accepts \"alphabetical\" instead of \"alphabetic\"."
29092909
" Please update your setting."
0 Bytes
Binary file not shown.

sphinx/locale/el/LC_MESSAGES/sphinx.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version: Sphinx\n"
1212
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
13-
"POT-Creation-Date: 2021-10-25 16:47+0000\n"
13+
"POT-Creation-Date: 2021-10-31 00:10+0000\n"
1414
"PO-Revision-Date: 2021-10-10 00:10+0000\n"
1515
"Last-Translator: Komiya Takeshi <[email protected]>\n"
1616
"Language-Team: Greek (http://www.transifex.com/sphinx-doc/sphinx-1/language/el/)\n"
@@ -2869,7 +2869,7 @@ msgid ""
28692869
msgstr ""
28702870

28712871
#: sphinx/ext/autodoc/__init__.py:1304 sphinx/ext/autodoc/__init__.py:1378
2872-
#: sphinx/ext/autodoc/__init__.py:2735
2872+
#: sphinx/ext/autodoc/__init__.py:2743
28732873
#, python-format
28742874
msgid "Failed to get a function signature for %s: %s"
28752875
msgstr ""
@@ -2900,12 +2900,12 @@ msgstr ""
29002900
msgid "Failed to get a method signature for %s: %s"
29012901
msgstr ""
29022902

2903-
#: sphinx/ext/autodoc/__init__.py:2349
2903+
#: sphinx/ext/autodoc/__init__.py:2348
29042904
#, python-format
29052905
msgid "Invalid __slots__ found on %s. Ignored."
29062906
msgstr ""
29072907

2908-
#: sphinx/ext/autodoc/__init__.py:2778
2908+
#: sphinx/ext/autodoc/__init__.py:2786
29092909
msgid ""
29102910
"autodoc_member_order now accepts \"alphabetical\" instead of \"alphabetic\"."
29112911
" Please update your setting."
0 Bytes
Binary file not shown.

sphinx/locale/et/LC_MESSAGES/sphinx.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Sphinx\n"
1313
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
14-
"POT-Creation-Date: 2021-10-25 16:47+0000\n"
14+
"POT-Creation-Date: 2021-10-31 00:10+0000\n"
1515
"PO-Revision-Date: 2021-10-10 00:10+0000\n"
1616
"Last-Translator: Komiya Takeshi <[email protected]>\n"
1717
"Language-Team: Estonian (http://www.transifex.com/sphinx-doc/sphinx-1/language/et/)\n"
@@ -2870,7 +2870,7 @@ msgid ""
28702870
msgstr ""
28712871

28722872
#: sphinx/ext/autodoc/__init__.py:1304 sphinx/ext/autodoc/__init__.py:1378
2873-
#: sphinx/ext/autodoc/__init__.py:2735
2873+
#: sphinx/ext/autodoc/__init__.py:2743
28742874
#, python-format
28752875
msgid "Failed to get a function signature for %s: %s"
28762876
msgstr ""
@@ -2901,12 +2901,12 @@ msgstr ""
29012901
msgid "Failed to get a method signature for %s: %s"
29022902
msgstr ""
29032903

2904-
#: sphinx/ext/autodoc/__init__.py:2349
2904+
#: sphinx/ext/autodoc/__init__.py:2348
29052905
#, python-format
29062906
msgid "Invalid __slots__ found on %s. Ignored."
29072907
msgstr ""
29082908

2909-
#: sphinx/ext/autodoc/__init__.py:2778
2909+
#: sphinx/ext/autodoc/__init__.py:2786
29102910
msgid ""
29112911
"autodoc_member_order now accepts \"alphabetical\" instead of \"alphabetic\"."
29122912
" Please update your setting."
0 Bytes
Binary file not shown.

sphinx/locale/hr/LC_MESSAGES/sphinx.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Sphinx\n"
1010
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
11-
"POT-Creation-Date: 2021-10-25 16:47+0000\n"
11+
"POT-Creation-Date: 2021-10-31 00:10+0000\n"
1212
"PO-Revision-Date: 2021-10-10 00:10+0000\n"
1313
"Last-Translator: Komiya Takeshi <[email protected]>\n"
1414
"Language-Team: Croatian (http://www.transifex.com/sphinx-doc/sphinx-1/language/hr/)\n"
@@ -2867,7 +2867,7 @@ msgid ""
28672867
msgstr ""
28682868

28692869
#: sphinx/ext/autodoc/__init__.py:1304 sphinx/ext/autodoc/__init__.py:1378
2870-
#: sphinx/ext/autodoc/__init__.py:2735
2870+
#: sphinx/ext/autodoc/__init__.py:2743
28712871
#, python-format
28722872
msgid "Failed to get a function signature for %s: %s"
28732873
msgstr ""
@@ -2898,12 +2898,12 @@ msgstr ""
28982898
msgid "Failed to get a method signature for %s: %s"
28992899
msgstr ""
29002900

2901-
#: sphinx/ext/autodoc/__init__.py:2349
2901+
#: sphinx/ext/autodoc/__init__.py:2348
29022902
#, python-format
29032903
msgid "Invalid __slots__ found on %s. Ignored."
29042904
msgstr ""
29052905

2906-
#: sphinx/ext/autodoc/__init__.py:2778
2906+
#: sphinx/ext/autodoc/__init__.py:2786
29072907
msgid ""
29082908
"autodoc_member_order now accepts \"alphabetical\" instead of \"alphabetic\"."
29092909
" Please update your setting."

0 commit comments

Comments
 (0)