Skip to content

Commit f984a26

Browse files
committed
docs: Fix typing.Union warning
Fix the warning by pinning the `intersphinx_mapping` for Python to 3.13. I did not dig into why the Python 3.14 changes for typing causes the warning.¹ I had tried to pin to 3.9 which is our minimal supported Python version, but that led to other warnings: ``` /Users/joverlee/Repos/nextstrain/augur/augur/io/shell_command_runner.py:docstring of augur.io.shell_command_runner.ShellCommandRunner.signal_from_error:1: WARNING: py:class reference target not found: signal.Signals [ref.class] /Users/joverlee/Repos/nextstrain/augur/augur/types.py:docstring of augur.types.ArgparseEnum:4: WARNING: py:class reference target not found: enum.StrEnum [ref.class] ``` ¹ <https://docs.python.org/3.14/whatsnew/3.14.html#typing>
1 parent 4a31ada commit f984a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def prose_list(items):
145145
'Bio': ('https://biopython.org/docs/latest/', None),
146146
'docs.nextstrain.org': ('https://docs.nextstrain.org/en/latest/', None),
147147
'cli': ('https://docs.nextstrain.org/projects/cli/en/stable', None),
148-
'python': ('https://docs.python.org/3', None),
148+
'python': ('https://docs.python.org/3.13', None),
149149
'numpy': ('https://numpy.org/doc/stable', None),
150150
'pandas': ('https://pandas.pydata.org/docs', None),
151151
'treetime': ('https://treetime.readthedocs.io/en/stable/', None),

0 commit comments

Comments
 (0)