Skip to content

Commit c6f065c

Browse files
committed
ignore typing errors, these are incorrect
Change-Id: Idc4e594811e52aa3d17562851ef02808e6dd5633
1 parent 02a1e38 commit c6f065c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

google/generativeai/vision_models/_vision_models.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,16 @@ def to_mapping_value(value) -> struct_pb2.Struct:
9393

9494

9595
AspectRatio = Literal["1:1", "9:16", "16:9", "4:3", "3:4"]
96-
ASPECT_RATIOS = AspectRatio.__args__
96+
ASPECT_RATIOS = AspectRatio.__args__ # type: ignore
9797

9898
OutputMimeType = Literal["image/png", "image/jpeg"]
99-
OUTPUT_MIME_TYPES = OutputMimeType.__args__
99+
OUTPUT_MIME_TYPES = OutputMimeType.__args__ # type: ignore
100100

101101
SafetyFilterLevel = Literal["block_most", "block_some", "block_few", "block_fewest"]
102-
SAFETY_FILTER_LEVELS = SafetyFilterLevel.__args__
102+
SAFETY_FILTER_LEVELS = SafetyFilterLevel.__args__ # type: ignore
103103

104104
PersonGeneration = Literal["dont_allow", "allow_adult", "allow_all"]
105-
PERSON_GENERATIONS = PersonGeneration.__args__
105+
PERSON_GENERATIONS = PersonGeneration.__args__ # type: ignore
106106

107107

108108
class Image:
@@ -198,7 +198,7 @@ def _as_base64_string(self) -> str:
198198
return base64.b64encode(self._image_bytes).decode("ascii")
199199

200200
def _repr_png_(self):
201-
return self._pil_image._repr_png_()
201+
return self._pil_image._repr_png_() # type:ignore
202202

203203

204204
class ImageGenerationModel:

0 commit comments

Comments
 (0)