Skip to content

Commit 875b441

Browse files
committed
Sphinx 3 else build breaks
1 parent d983969 commit 875b441

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
get_version
22

3-
sphinx>=1.8
3+
sphinx>=3.0
44
sphinx-autodoc-typehints
5+
sphinx-rtd-theme

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ classifiers = [
1919
]
2020
requires-python = '>=3.6'
2121
requires = [
22-
'sphinx>=1.8',
22+
'sphinx>=3.0',
2323
'get_version',
2424
]
2525

scanpydoc/definition_list_typed_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def handle_item(
4949
if field_type is not None:
5050
head += nodes.Text(" : ")
5151
if len(field_type) == 1 and isinstance(field_type[0], nodes.Text):
52-
text_node, = field_type # type: nodes.Text
52+
(text_node,) = field_type # type: nodes.Text
5353
head += make_refs(
5454
self.typerolename, text_node.astext(), addnodes.literal_emphasis
5555
)

0 commit comments

Comments
 (0)