Skip to content

Commit

Permalink
removed extension 'sphinx_autodoc_typehints' due to failed guarded ty…
Browse files Browse the repository at this point in the history
…pe import with xarray
  • Loading branch information
shachafl committed May 23, 2024
1 parent d72f8a3 commit e94cca7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx_autodoc_typehints',
'sphinxcontrib.programoutput',
'sphinx_gallery.gen_gallery',
'sphinx.ext.intersphinx',
Expand Down Expand Up @@ -130,6 +129,8 @@
'download_all_examples': False,
'default_thumb_file': f'{dir_}/_static/design/logo-solo.png',
'min_reported_time': 10,
# Rerun stale examples even if their MD5 hash shows that the example did not change.
'run_stale_examples': True,

}

Expand Down Expand Up @@ -276,11 +277,6 @@ def setup(app):
napoleon_use_param = True
napoleon_use_rtype = True

# See https://stackoverflow.com/a/45565445/56887
# Add xarray due to failed guarded type import with
# ImportError("cannot import name 'DatetimeLike' from 'xarray.core.types'...)
autodoc_mock_imports = ['_tkinter', 'xarray']

rst_epilog = """
.. include:: <s5defs.txt>
"""

0 comments on commit e94cca7

Please sign in to comment.