On 9. 8. 2024 21:03, Jeremy Spewock wrote:
This is a funny change I wouldn't have expected the series to need. I don't doubt that it does need it of course and I don't think there is any harm in the change, but, out of curiosity, is this because the or operator is coming from one of the dependencies we are installing? I thought it was just shipped with later Python versions. Regardless,
I think this happens when Paramiko is not installed, as is likely the case in CI. When Paramiko is installed, the issue doesn't crop up.
I added the autodoc_mock_imports [0] configuration so that dependencies don't have to be installed. I don't know how exactly autodoc gets around the imports, but that seems to be what's causing the error when Paramiko is missing.
[0] https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_mock_imports
Reviewed-by: Jeremy Spewock <jspew...@iol.unh.edu>