From 0cd1f15d55efc2a79195e901218f2477e6f5d1e8 Mon Sep 17 00:00:00 2001 From: Joe Zou Date: Thu, 19 Dec 2024 11:49:18 -0800 Subject: [PATCH] Use Optional[int] instead of int | None for pre 3.10 python PiperOrigin-RevId: 707981187 --- .../model_maker/python/text/text_classifier/text_classifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediapipe/model_maker/python/text/text_classifier/text_classifier.py b/mediapipe/model_maker/python/text/text_classifier/text_classifier.py index a881562cf7..eddbe4db83 100644 --- a/mediapipe/model_maker/python/text/text_classifier/text_classifier.py +++ b/mediapipe/model_maker/python/text/text_classifier/text_classifier.py @@ -859,7 +859,7 @@ def export_model( self, model_name: str = "model.tflite", quantization_config: Optional[quantization.QuantizationConfig] = None, - batch_size: int | None = None, + batch_size: Optional[int] = None, ): """Converts and saves the model to a TFLite file with metadata included.