Skip to content

Commit 1ccd8b1

Browse files
committed
autodoc import workaround
1 parent 9cd8aed commit 1ccd8b1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hypothesis-python/docs/conf.py

+8
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ def setup(app):
5555
if root.joinpath("RELEASE.rst").is_file():
5656
app.tags.add("has_release_file")
5757

58+
# Workaround for partial-initialization problem when autodoc imports libcst
59+
import libcst
60+
61+
import hypothesis.extra.codemods
62+
63+
assert libcst
64+
assert hypothesis.extra.codemods
65+
5866
# patch in mock array_api namespace so we can autodoc it
5967
from hypothesis.extra.array_api import (
6068
RELEASED_VERSIONS,

0 commit comments

Comments
 (0)