Skip to content

Commit

Permalink
add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Nov 17, 2023
1 parent c6bf8d8 commit 7777c18
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions metadata-ingestion/src/datahub/utilities/docs_build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from typing import TYPE_CHECKING

try:
# Via https://stackoverflow.com/a/65147676
if not TYPE_CHECKING and __sphinx_build__:
IS_SPHINX_BUILD = True

except NameError:
IS_SPHINX_BUILD = False

0 comments on commit 7777c18

Please sign in to comment.