Skip to content

Commit 7698c69

Browse files
authored
Fix build docs. (google-gemini#150)
* Fix build docs. * Update comment
1 parent 9f3feed commit 7698c69

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/build_docs.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,21 @@
2626
import textwrap
2727
import typing
2828

29-
# For showing the conditional imports and types in `content_types.py`
30-
typing.TYPE_CHECKING = True
3129

3230
from absl import app
3331
from absl import flags
3432

3533
import google
36-
from google import generativeai as palm
3734
from google.ai import generativelanguage as glm
3835

36+
import grpc
37+
# For showing the conditional imports and types in `content_types.py`
38+
# grpc must be imported first.
39+
typing.TYPE_CHECKING = True
40+
from google import generativeai as palm
41+
42+
43+
3944
from tensorflow_docs.api_generator import generate_lib
4045
from tensorflow_docs.api_generator import public_api
4146

0 commit comments

Comments
 (0)