Skip to content

Commit cedea99

Browse files
authored
Merge pull request astropy#318 from bsipocz/typing_import
Importing typing to workaround issues with doc builds
2 parents 01cfa7a + 75de5fb commit cedea99

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎ah_bootstrap.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,17 @@
9191
use_setuptools()
9292

9393

94+
# typing as a dependency for 1.6.1+ Sphinx causes issues when imported after
95+
# initializing submodule with ah_boostrap.py
96+
# See discussion and references in
97+
# https://github.com/astropy/astropy-helpers/issues/302
98+
99+
try:
100+
import typing # noqa
101+
except ImportError:
102+
pass
103+
104+
94105
# Note: The following import is required as a workaround to
95106
# https://github.com/astropy/astropy-helpers/issues/89; if we don't import this
96107
# module now, it will get cleaned up after `run_setup` is called, but that will

0 commit comments

Comments
 (0)