Skip to content

Commit

Permalink
autodoc import workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Aug 26, 2023
1 parent 9cd8aed commit 1ccd8b1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hypothesis-python/docs/conf.py
Expand Up @@ -55,6 +55,14 @@ def setup(app):
if root.joinpath("RELEASE.rst").is_file():
app.tags.add("has_release_file")

# Workaround for partial-initialization problem when autodoc imports libcst
import libcst

import hypothesis.extra.codemods

assert libcst
assert hypothesis.extra.codemods

# patch in mock array_api namespace so we can autodoc it
from hypothesis.extra.array_api import (
RELEASED_VERSIONS,
Expand Down

0 comments on commit 1ccd8b1

Please sign in to comment.